Parcourir la source

[svn r12131] Fix a bug

Julian Prud'homme il y a 18 ans
Parent
commit
a0b4e01fef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      main/mySpace/myStudents.php

+ 1 - 1
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,1);
+			unset($a_courses[$key]);
 		}
 		else
 		{