From 466a69bc42444fde794d9d5f9cc94b71b9e87ac2 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 21 Oct 2002 12:48:13 +0000 Subject: [PATCH] Bugfix on calculating correct answers for multichoice questions --- mod/quiz/lib.php | 1 - 1 file changed, 1 deletion(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index 056167c5790..4f7b574b8f3 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -984,7 +984,6 @@ function quiz_grade_attempt_results($quiz, $questions) { if ($answer->fraction > 0) { $correct[$answer->id] = true; } - $correct[$answer->id] = $answer->fraction; // 0 or 1 if ($question->answer) { foreach ($question->answer as $questionanswer) { if ($questionanswer == $answer->id) {