mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Bugfix on calculating correct answers for multichoice questions
This commit is contained in:
parent
e909c8d090
commit
466a69bc42
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user