Browse Source

[svn r12131] Fix a bug

Julian Prud'homme 18 years ago
parent
commit
a0b4e01fef
1 changed files with 1 additions and 1 deletions
  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))
 		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
 		else
 		{
 		{