diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index 9c6c1ff0bfb..53a4e18f0fd 100755 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -1339,7 +1339,7 @@ $totalScore = 0; $totalProgress = 0; $gradeBookTotal = [0, 0]; - $totalCourses = count($courses); + $totalCourses = 0; $scoreDisplay = ScoreDisplay::instance(); $theoreticalTime = 0; $totalTheoreticalTime = 0; @@ -1364,6 +1364,7 @@ } if ($isSubscribed) { + $totalCourses++; $timeInSeconds = Tracking::get_time_spent_on_the_course( $student_id, $courseId,