Fix Multiple answer true/false/don't know see BT#10420

1.9.x
Julio 10 years ago
parent b6d59a438c
commit bbe23a83bd
  1. 10
      main/exercice/exercise.class.php

@ -2319,16 +2319,18 @@ class Exercise
if ($studentChoice == $answerCorrect) {
$questionScore += $true_score;
} else {
if ($quiz_question_options[$studentChoice]['name'] != "Don't know") {
$questionScore += $false_score;
} else {
if ($quiz_question_options[$studentChoice]['name'] == "Don't know" ||
$quiz_question_options[$studentChoice]['name'] == "DoubtScore"
) {
$questionScore += $doubt_score;
} else {
$questionScore += $false_score;
}
}
} else {
// If no result then the user just hit don't know
$studentChoice = 3;
$questionScore += $doubt_score;
$questionScore += $doubt_score;
}
$totalScore = $questionScore;
break;

Loading…
Cancel
Save