Permalink
Browse files

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

  • Loading branch information...
1 parent 7def533 commit e6052102ecd74345fbe2ef59290f598db97e94fd @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 e605210

Please sign in to comment.