Permalink
Browse files

Bugfix on calculating correct answers for multichoice questions

  • Loading branch information...
1 parent e909c8d commit 466a69bc42444fde794d9d5f9cc94b71b9e87ac2 moodler committed Oct 21, 2002
Showing with 0 additions and 1 deletion.
  1. +0 −1 mod/quiz/lib.php
View
@@ -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) {

0 comments on commit 466a69b

Please sign in to comment.