Permalink
Browse files

[Fix] $navigation and $grade_value were undefined when lesson was add…

…ed to site main page
  • Loading branch information...
1 parent f0ebc09 commit 7e42b04bbce0df748b12c283a3f9ba120d851674 michaelpenne committed Feb 24, 2006
Showing with 3 additions and 1 deletion.
  1. +3 −1 mod/lesson/index.php
View
@@ -26,6 +26,8 @@
if ($course->category) {
$navigation = "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->";
+ } else {
+ $navigation = '';
}
print_header("$course->shortname: $strlessons", "$course->fullname", "$navigation $strlessons", "", "", true, "", navmenu($course));
@@ -94,7 +96,7 @@
}
$table->data[] = array ($lesson->section, $link, $grade_value, $due);
} else {
- $table->data[] = array ($link, $grade_value, $due);
+ $table->data[] = array ($link, $lesson->grade, $due);
}
}

0 comments on commit 7e42b04

Please sign in to comment.