fixed answer checking prevpage typo
authorPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:23:46 +0000 (13:23 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 18 Sep 2010 13:23:46 +0000 (13:23 +0000)
mod/lesson/pagetypes/branchtable.php

index ddc7cb7..7961bce 100644 (file)
@@ -184,7 +184,7 @@ class lesson_page_type_branchtable extends lesson_page {
                 $newpageid = LESSON_EOL;
             }
         } elseif ($newpageid == LESSON_PREVIOUSPAGE) {
-            $newpageid = $page->prevpageid;
+            $newpageid = $this->prevpageid;
         } elseif ($newpageid == LESSON_RANDOMPAGE) {
             $newpageid = lesson_random_question_jump($this->lesson, $this->properties->id);
         } elseif ($newpageid == LESSON_RANDOMBRANCH) {