Skip to content

Commit

Permalink
Don't force int values for global questions see BT#8659, BT#8896
Browse files Browse the repository at this point in the history
Fixes 28116a5
  • Loading branch information
jmontoyaa committed Oct 23, 2014
1 parent 9222a61 commit 715cb49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/exercice/exercise.lib.php
Expand Up @@ -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'];
Expand Down

0 comments on commit 715cb49

Please sign in to comment.