Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-32172 Lesson Module: add variable initialization for

  • Loading branch information...
commit 08b69b29bcbbd6dd1fe1f3244289b70e04c626a5 1 parent a7899ca
rwijaya authored March 23, 2012

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  mod/lesson/locallib.php
1  mod/lesson/locallib.php
@@ -201,6 +201,7 @@ function lesson_unseen_branch_jump($lesson, $userid) {
201 201
     // this function searches through the lesson pages to find all the branch tables
202 202
     // that follow the flagged branch table
203 203
     $pageid = $lessonpages[$start]->nextpageid; // move down from the flagged branch table
  204
+    $branchtables = array();
204 205
     while ($pageid != 0) {  // grab all of the branch table till eol
205 206
         if ($lessonpages[$pageid]->qtype == LESSON_PAGE_BRANCHTABLE) {
206 207
             $branchtables[] = $lessonpages[$pageid]->id;

0 notes on commit 08b69b2

Please sign in to comment.
Something went wrong with that request. Please try again.