Minor: RemedialCourse: FlinciFix - refs BT#18165

pull/3729/head
Carlos Alvarado 5 years ago
parent 9766ab4a99
commit 60bbe4a62b
No known key found for this signature in database
GPG Key ID: B612DB1EE6658FBB
  1. 6
      main/exercise/exercise.class.php

@ -10967,9 +10967,9 @@ class Exercise
$blockPercentage = (int) $blockExercise['value'];
}
$percentage = 0;
if ($blockPercentage !=0) {
if(isset($attemp['exe_result']) && isset($attemp['exe_weighting'])){
$weigh = (int)$attemp['exe_weighting'];
if ($blockPercentage != 0) {
if (isset($attemp['exe_result']) && isset($attemp['exe_weighting'])) {
$weigh = (int) $attemp['exe_weighting'];
$weigh = (0 == $weigh) ? 1 : $weigh;
$percentage = float_format(
($attemp['exe_result'] / $weigh) * 100,

Loading…
Cancel
Save