MDL-34050 Lesson module: Fixed undefined variable for $qtype
authorRossiani Wijaya <rwijaya@moodle.com>
Fri, 11 Jan 2013 03:47:13 +0000 (11:47 +0800)
committerRossiani Wijaya <rwijaya@moodle.com>
Mon, 14 Jan 2013 02:16:35 +0000 (10:16 +0800)
mod/lesson/locallib.php

index e9402b8..3a139a4 100644 (file)
@@ -2309,7 +2309,7 @@ abstract class lesson_page extends lesson_base {
         }
         if (count($this->answers)>0) {
             $count = 0;
-            $properties->qtype;
+            $qtype = $properties->qtype;
             foreach ($this->answers as $answer) {
                 $properties->{'answer_editor['.$count.']'} = array('text'=>$answer->answer, 'format'=>$answer->answerformat);
                 if ($qtype != LESSON_PAGE_MATCHING) {