Merge branch 'MDL-32172' of git://github.com/rwijaya/moodle

This commit is contained in:
Dan Poltawski 2012-03-26 12:23:15 +08:00
commit 113022e559

View file

@ -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;