From 909e6c79d84b4d427f52cee5c8de588b1983b492 Mon Sep 17 00:00:00 2001 From: michaelpenne Date: Wed, 22 Sep 2004 19:14:51 +0000 Subject: [PATCH] Fixed a bug regarding cluster jumps. Before, if end of cluster's jump was next page, it would throw an error. --- mod/lesson/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5