Index: temp_moodle_dev/moodle/mod/lesson/locallib.php =================================================================== diff -u -r283afa151e8bb5649df908f52f01fff24fc01585 -raca9f00eec05f594be36b6397b9c363742db6022 --- temp_moodle_dev/moodle/mod/lesson/locallib.php (.../locallib.php) (revision 283afa151e8bb5649df908f52f01fff24fc01585) +++ temp_moodle_dev/moodle/mod/lesson/locallib.php (.../locallib.php) (revision aca9f00eec05f594be36b6397b9c363742db6022) @@ -241,12 +241,12 @@ $navigation = build_navigation('', $cm); /// Print header, heading, tabs and messages - if($cm->is_lams==1){ - print_header(); - }else{ - print_header("$course->shortname: $strname", $course->fullname, $navigation, + if($cm->is_lams==1){ + print_header(); + }else{ + print_header("$course->shortname: $strname", $course->fullname, $navigation, '', '', true, $button, navmenu($course, $cm)); - } + } if (has_capability('mod/lesson:manage', $context)) { print_heading_with_help($strname, "overview", "lesson"); @@ -1448,7 +1448,7 @@ $earned += $essayinfo->score; $nmanual++; $manualpoints += $answers[$attempt->answerid]->score; - } else { + } else if (!empty($attempt->answerid)) { $earned += $answers[$attempt->answerid]->score; } } else {