diff options
author | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 22:49:42 +0100 |
---|---|---|
committer | Jean-Michel Vedrine <vedrine@vedrine.org> | 2018-01-02 22:49:42 +0100 |
commit | 1f8c26f25b52d410d126eeeb30f61012094beaaa (patch) | |
tree | 2100701a3c96d28b4236f527815ca94a369d3ca0 /questiontype.php | |
parent | 6e9f189cdba529e41c345abfd26ffecaede65c4b (diff) |
Small fix to the parser and more Behat tests
Diffstat (limited to 'questiontype.php')
-rw-r--r-- | questiontype.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/questiontype.php b/questiontype.php index d2d283d..01f86c4 100644 --- a/questiontype.php +++ b/questiontype.php @@ -513,11 +513,6 @@ class qtype_algebra extends question_type { } public function get_random_guess_score($questiondata) { - foreach ($questiondata->options->answers as $aid => $answer) { - if ('*' == trim($answer->answer)) { - return $answer->fraction; - } - } return 0; } |