Skip to content

Commit

Permalink
MDL-32172 Lesson Module: add variable initialization for
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossiani Wijaya committed Mar 23, 2012
1 parent c856a1f commit 0f6e2f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/lesson/locallib.php
Expand Up @@ -201,6 +201,7 @@ function lesson_unseen_branch_jump($lesson, $userid) {
// this function searches through the lesson pages to find all the branch tables
// that follow 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
if ($lessonpages[$pageid]->qtype == LESSON_PAGE_BRANCHTABLE) {
$branchtables[] = $lessonpages[$pageid]->id;
Expand Down

0 comments on commit 0f6e2f0

Please sign in to comment.