Don't force int values for global questions see BT#8659, BT#8896

Fixes 28116a5201
1.9.x
Julio Montoya 10 years ago
parent 9222a61eaa
commit 715cb49a5d
  1. 4
      main/exercice/exercise.lib.php

@ -2532,9 +2532,9 @@ function display_question_list_by_attempt($objExercise, $exe_id, $save_user_resu
}
// In case of global score, make sure the calculated total score is integer
if (!is_int($result['score'])) {
/*if (!is_int($result['score'])) {
$result['score'] = round($result['score']);
}
}*/
$total_score += $result['score'];
$total_weight += $result['weight'];

Loading…
Cancel
Save