From 1f8c26f25b52d410d126eeeb30f61012094beaaa Mon Sep 17 00:00:00 2001 From: Jean-Michel Vedrine Date: Tue, 2 Jan 2018 22:49:42 +0100 Subject: Small fix to the parser and more Behat tests --- questiontype.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'questiontype.php') 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; } -- cgit v1.2.3