diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index 3e1fb65996..48eb221d70 100644 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -4072,7 +4072,7 @@ class CourseManager { } } else { // Add new teachers only - foreach ($teachers as $userId => $userInfo) { + foreach ($teachers as $userId) { SessionManager::set_coach_to_course_session($userId, $session['id'], $course_code); } }