$string['nocommentyet'] = 'No comment yet.';
$string['nocoursemods'] = 'No activities found';
$string['nocredit'] = 'No credit';
+$string['nodeadline'] = 'No deadline';
$string['noessayquestionsfound'] = 'No essay questions found in this lesson.';
$string['nohighscores'] = 'No high scores';
$string['nolessonattempts'] = 'No attempts have been made on this lesson.';
$strdeadline = get_string("deadline", "lesson");
$strweek = get_string("week");
$strtopic = get_string("topic");
+ $strnodeadline = get_string("nodeadline", "lesson");
$table = new stdClass;
if ($course->format == "weeks") {
$cm = get_coursemodule_from_instance('lesson', $lesson->id);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
- if ($lesson->deadline > $timenow) {
+ if ($lesson->deadline == 0) {
+ $due = $strnodeadline;
+ } else if ($lesson->deadline > $timenow) {
$due = userdate($lesson->deadline);
} else {
$due = "<font color=\"red\">".userdate($lesson->deadline)."</font>";