]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed a bug regarding cluster jumps. Before, if end of cluster's jump was next page...
authormichaelpenne <michaelpenne>
Wed, 22 Sep 2004 19:14:51 +0000 (19:14 +0000)
committermichaelpenne <michaelpenne>
Wed, 22 Sep 2004 19:14:51 +0000 (19:14 +0000)
mod/lesson/locallib.php

index fa8eae6a1c3dc1ec3c23696d410222109d8bc4a5..1e27891b8082842641a4f52cba1eb59cdfb90163 100644 (file)
@@ -616,7 +616,7 @@ function lesson_cluster_jump($lesson, $user, $pageid) {
                        // store the endofcluster page's jump
                        $exitjump = get_field("lesson_answers", "jumpto", "pageid", $pages[$count][0], "lessonid", $lesson);
                        if ($exitjump == LESSON_NEXTPAGE) {
-                               $exitjump = $pages[$count][2];
+                               $exitjump = $lessonpages[$pageid]->nextpageid;
                        }
                        if ($exitjump == 0) {
                                $exitjump = LESSON_EOL;