Fixed a bug with clusters. If you enter a cluster after a page it would throw a

navigation error.  It now enters the cluster properly.
This commit is contained in:
michaelpenne
2005-06-15 22:34:31 +00:00
parent d673f73a37
commit 7070d53107
+1 -1
View File
@@ -727,7 +727,7 @@
error("Error: could not find page");
}
if ($page->qtype == LESSON_CLUSTER) {
$newpageid = LESSON_CLUSTERJUMP;
$newpageid = lesson_cluster_jump($lesson->id, $USER->id, $page->id);
} elseif ($page->qtype == LESSON_ENDOFCLUSTER) {
$jump = get_field("lesson_answers", "jumpto", "pageid", $page->id, "lessonid", $lesson->id);
if ($jump == LESSON_NEXTPAGE) {