MDL-35357 Lesson Module: fixed undefined property for $answerformat

This commit is contained in:
Michael de Raadt
2013-01-21 15:38:48 +08:00
committed by Rossiani Wijaya
parent 7def53379b
commit e6052102ec
+1
View File
@@ -213,6 +213,7 @@ class lesson_page_type_essay extends lesson_page {
} else {
$essayinfo = new stdClass();
$essayinfo->answer = get_string("didnotanswerquestion", "lesson");
$essayinfo->answerformat = null;
}
if (isset($pagestats[$this->properties->id])) {