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

This commit is contained in:
rkingdon
2004-04-02 15:54:07 +00:00
parent 8bcdebef81
commit 4c8479f705
+1 -1
View File
@@ -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";