From: michaelpenne Date: Tue, 28 Sep 2004 19:15:20 +0000 (+0000) Subject: changed $pages[$count][0] to $pageid on line #617 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c732188674893df44d2dbc855aec6ae31ac0034a;p=moodle.git changed $pages[$count][0] to $pageid on line #617 --- diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index b895063aff..870dd46b75 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -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; }