aboutsummaryrefslogtreecommitdiff
path: root/questiontype.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2017-12-17 13:32:43 +0100
committerJean-Michel Vedrine <vedrine@vedrine.org>2017-12-17 13:32:43 +0100
commit29cbd16f27e4a2f90c6ecc55cdf72ff7fbe1941b (patch)
tree9076bc92d60e7467ba87740a52a15a95a593dd29 /questiontype.php
parent34fedfb142aac84dc2aac734fd1ed09ec4b134c6 (diff)
PHP7 constructor and statistics bug fix
Diffstat (limited to 'questiontype.php')
-rw-r--r--questiontype.php2
1 files changed, 2 insertions, 0 deletions
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);