[svn r20226] Added a validation to reporting in my progress see FS#3991

skala
Arthur Portugal 16 years ago
parent 7ec05c0ec2
commit 7e655913f7
  1. 7
      main/inc/lib/tracking.lib.php

@ -1284,8 +1284,11 @@ class Tracking {
$average_data1=0;
$count_loop++;
}
$avg_student_score=round(($average_data_sum/$count_loop)*100,2);
if ((int)$count_loop > 0) {
$avg_student_score = round(($average_data_sum / $count_loop) * 100, 2);
}
return $avg_student_score;
}
}

Loading…
Cancel
Save