mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
changed $pages[$count][0] to $pageid on line #617
This commit is contained in:
parent
da72d76d30
commit
c732188674
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user