diff --git a/main/mySpace/myStudents.php b/main/mySpace/myStudents.php index d144090e75..0b0e8f9351 100644 --- a/main/mySpace/myStudents.php +++ b/main/mySpace/myStudents.php @@ -200,7 +200,7 @@ if(!empty($_GET['student'])) { if(!CourseManager::is_user_subscribed_in_course($a_infosUser['user_id'], $course_code, true)) { - array_splice($a_courses, $key); + array_splice($a_courses, $key,1); } else {