Permalink
Browse files

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

  • Loading branch information...
1 parent e61f96c commit 54a25a2f88a711ecc83898a258d23a41336035ce @deraadt deraadt committed with rwijaya Jan 21, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/lesson/pagetypes/essay.php
@@ -213,6 +213,7 @@ public function report_answers($answerpage, $answerdata, $useranswer, $pagestats
} else {
$essayinfo = new stdClass();
$essayinfo->answer = get_string("didnotanswerquestion", "lesson");
+ $essayinfo->answerformat = null;
}
if (isset($pagestats[$this->properties->id])) {

0 comments on commit 54a25a2

Please sign in to comment.