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

This commit is contained in:
Michael de Raadt
2013-01-21 15:42:52 +08:00
committed by Rossiani Wijaya
parent e61f96c55b
commit 54a25a2f88
+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])) {