Bugfix on calculating correct answers for multichoice questions

This commit is contained in:
moodler 2002-10-21 12:48:13 +00:00
parent e909c8d090
commit 466a69bc42

View 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) {