]> git.mjollnir.org Git - moodle.git/commitdiff
changed $pages[$count][0] to $pageid on line #617
authormichaelpenne <michaelpenne>
Tue, 28 Sep 2004 19:15:20 +0000 (19:15 +0000)
committermichaelpenne <michaelpenne>
Tue, 28 Sep 2004 19:15:20 +0000 (19:15 +0000)
mod/lesson/locallib.php

index b895063aff8bb7205ba063c0f4ea88913c432c7c..870dd46b750a8f3704a9075f59d82867cf33d1e4 100644 (file)
@@ -614,7 +614,7 @@ function lesson_cluster_jump($lesson, $user, $pageid) {
        while (true) {  // now load all the pages into the cluster that are not already inside of a branch table.
                if ($lessonpages[$pageid]->qtype == LESSON_ENDOFCLUSTER) {
                        // store the endofcluster page's jump
-                       $exitjump = get_field("lesson_answers", "jumpto", "pageid", $pages[$count][0], "lessonid", $lesson);
+                       $exitjump = get_field("lesson_answers", "jumpto", "pageid", $pageid, "lessonid", $lesson);
                        if ($exitjump == LESSON_NEXTPAGE) {
                                $exitjump = $lessonpages[$pageid]->nextpageid;
                        }