From: rkingdon Date: Fri, 2 Apr 2004 15:54:07 +0000 (+0000) Subject: Fix bug when the last page of a lesson has no question. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4c8479f70537243c72eae2233e47a5480393dae8;p=moodle.git Fix bug when the last page of a lesson has no question. --- diff --git a/mod/lesson/view.php b/mod/lesson/view.php index cfadfffe06..4a838efdb0 100644 --- a/mod/lesson/view.php +++ b/mod/lesson/view.php @@ -336,7 +336,7 @@ // in normal lesson mode... if (!$newpageid = get_field("lesson_pages", "nextpageid", "id", $pageid)) { // this is the last page - flag end of lesson - $newpageid = EOL; + $newpageid = LESSON_EOL; } } echo "\n";