]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix on calculating correct answers for multichoice questions
authormoodler <moodler>
Mon, 21 Oct 2002 12:48:13 +0000 (12:48 +0000)
committermoodler <moodler>
Mon, 21 Oct 2002 12:48:13 +0000 (12:48 +0000)
mod/quiz/lib.php

index 056167c579093a57ece88f555ac1c4405b442e8b..4f7b574b8f346b46f34ed6bd8bcec4ba9ddd3bfd 100644 (file)
@@ -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) {