Permalink
Browse files

Fix bug when the last page of a lesson has no question.

  • Loading branch information...
1 parent 8bcdebe commit 4c8479f70537243c72eae2233e47a5480393dae8 rkingdon committed Apr 2, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/lesson/view.php
View
@@ -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 "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\">\n";

0 comments on commit 4c8479f

Please sign in to comment.