From 29cbd16f27e4a2f90c6ecc55cdf72ff7fbe1941b Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Sun, 17 Dec 2017 13:32:43 +0100 Subject: PHP7 constructor and statistics bug fix --- questiontype.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'questiontype.php') diff --git a/questiontype.php b/questiontype.php index a49698a..f49bd55 100644 --- a/questiontype.php +++ b/questiontype.php @@ -529,6 +529,8 @@ class qtype_algebra extends question_type { $responses[$aid] = new question_possible_response($answer->answer, $answer->fraction); } + $responses[0] = new question_possible_response( + get_string('didnotmatchanyanswer', 'question'), 0); $responses[null] = question_possible_response::no_response(); return array($questiondata->id => $responses); -- cgit v1.2.3