mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-32172' of git://github.com/rwijaya/moodle
This commit is contained in:
commit
113022e559
1 changed files with 1 additions and 0 deletions
|
@ -201,6 +201,7 @@ function lesson_unseen_branch_jump($lesson, $userid) {
|
||||||
// this function searches through the lesson pages to find all the branch tables
|
// this function searches through the lesson pages to find all the branch tables
|
||||||
// that follow the flagged branch table
|
// that follow the flagged branch table
|
||||||
$pageid = $lessonpages[$start]->nextpageid; // move down from the flagged branch table
|
$pageid = $lessonpages[$start]->nextpageid; // move down from the flagged branch table
|
||||||
|
$branchtables = array();
|
||||||
while ($pageid != 0) { // grab all of the branch table till eol
|
while ($pageid != 0) { // grab all of the branch table till eol
|
||||||
if ($lessonpages[$pageid]->qtype == LESSON_PAGE_BRANCHTABLE) {
|
if ($lessonpages[$pageid]->qtype == LESSON_PAGE_BRANCHTABLE) {
|
||||||
$branchtables[] = $lessonpages[$pageid]->id;
|
$branchtables[] = $lessonpages[$pageid]->id;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue