Skip to content

Commit

Permalink
Fix division by zero in mySpace tracking - refs BT#11758
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Sep 29, 2016
1 parent 575ce61 commit 3558d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/mySpace/myStudents.php
Expand Up @@ -733,7 +733,7 @@ function show_image(image,width,height) {
}

$scoretotal_display = '0/0 (0%)';
if (!empty($scoretotal)) {
if (!empty($scoretotal) && !empty($scoretotal[1])) {
$scoretotal_display =
round($scoretotal[0], 1 ).'/'.
round($scoretotal[1], 1).
Expand Down

0 comments on commit 3558d6b

Please sign in to comment.