Explorar el Código

[svn r12131] Fix a bug

Julian Prud'homme hace 18 años
padre
commit
a0b4e01fef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 		{