Index: temp_moodle_dev/moodle/mod/lesson/locallib.php =================================================================== RCS file: /usr/local/cvsroot/temp_moodle_dev/moodle/mod/lesson/locallib.php,v diff -u -r1.2 -r1.3 --- temp_moodle_dev/moodle/mod/lesson/locallib.php 5 Jan 2009 23:26:20 -0000 1.2 +++ temp_moodle_dev/moodle/mod/lesson/locallib.php 28 Oct 2009 07:31:59 -0000 1.3 @@ -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 {