Fix division by zero in mySpace tracking - refs BT#11758

pull/2487/head
Yannick Warnier 9 years ago
parent 575ce618bc
commit 3558d6b29c
  1. 2
      main/mySpace/myStudents.php

@ -733,7 +733,7 @@ if (!empty($student_id)) {
}
$scoretotal_display = '0/0 (0%)';
if (!empty($scoretotal)) {
if (!empty($scoretotal) && !empty($scoretotal[1])) {
$scoretotal_display =
round($scoretotal[0], 1 ).'/'.
round($scoretotal[1], 1).

Loading…
Cancel
Save