From 3558d6b29c87f6e7235a44a3237a98aa3fa2925a Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 29 Sep 2016 11:07:03 -0500 Subject: [PATCH] Fix division by zero in mySpace tracking - refs BT#11758 --- main/mySpace/myStudents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index f8359a56a0..75289413e8 100755 --- a/main/mySpace/myStudents.php +++ b/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).