MDL-34050 Lesson module: Fixed undefined variable for $qtype

This commit is contained in:
Rossiani Wijaya
2013-01-14 10:16:35 +08:00
parent 58b72abc6a
commit fcb88d7d6d
+1 -1
View 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) {