diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index b21a2d13d3..712da1643f 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -701,7 +701,7 @@ if (!empty($student_id)) { $scoretotal_display = round($scoretotal[0], 1 ).'/'. round($scoretotal[1], 1). - ' ('.round(($scoretotal[0] / $scoretotal[1]) * 100, 2).' %)'; + ' ('.round(($scoretotal[0] / ($scoretotal[1] ? $scoretotal[1] : 1)) * 100, 2).' %)'; } $progress = Tracking::get_avg_student_progress($user_info['user_id'], $courseCodeItem, null, $sessionId);