mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Bugfix on calculating correct answers for multichoice questions
This commit is contained in:
parent
e909c8d090
commit
466a69bc42
1 changed files with 0 additions and 1 deletions
|
@ -984,7 +984,6 @@ function quiz_grade_attempt_results($quiz, $questions) {
|
||||||
if ($answer->fraction > 0) {
|
if ($answer->fraction > 0) {
|
||||||
$correct[$answer->id] = true;
|
$correct[$answer->id] = true;
|
||||||
}
|
}
|
||||||
$correct[$answer->id] = $answer->fraction; // 0 or 1
|
|
||||||
if ($question->answer) {
|
if ($question->answer) {
|
||||||
foreach ($question->answer as $questionanswer) {
|
foreach ($question->answer as $questionanswer) {
|
||||||
if ($questionanswer == $answer->id) {
|
if ($questionanswer == $answer->id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue