Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4c8479f70537243c72eae2233e47a5480393dae8 1 parent 8bcdebe
rkingdon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/lesson/view.php
View
2  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 "<input type=\"hidden\" name=\"pageid\" value=\"$newpageid\">\n";
Please sign in to comment.
Something went wrong with that request. Please try again.