From: michaelpenne Date: Wed, 22 Sep 2004 19:14:51 +0000 (+0000) Subject: Fixed a bug regarding cluster jumps. Before, if end of cluster's jump was next page... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=909e6c79d84b4d427f52cee5c8de588b1983b492;p=moodle.git Fixed a bug regarding cluster jumps. Before, if end of cluster's jump was next page, it would throw an error. --- diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index fa8eae6a1c..1e27891b80 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -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;