Fixing PHP warning see #5654

skala
Yoselyn Castillo 12 years ago
parent 9efd3b52a9
commit 6f89827496
  1. 9
      main/inc/lib/course.lib.php

@ -714,9 +714,10 @@ class CourseManager {
}
} else {
$students_in_course = SessionManager::get_users_by_session($session_id, '0');
foreach($students_in_course as $user_item) {
$students_in_courses[$user_item['user_id']] = $user_item['user_id'];
if (is_array($students_in_course)) {
foreach($students_in_course as $user_item) {
$students_in_courses[$user_item['user_id']] = $user_item['user_id'];
}
}
}
}
@ -3846,4 +3847,4 @@ class CourseManager {
}
return $options;
}
} //end class CourseManager
} //end class CourseManager
Loading…
Cancel
Save