From ac4e4df6bf119a2dfc3324f3a9085746ec2b12fa Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 4 Oct 2013 12:13:46 +0200 Subject: [PATCH] Update teachers --- main/inc/lib/course.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index c9cd0578e6..3e1fb65996 100644 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -4071,8 +4071,8 @@ class CourseManager { } } } else { - // Add new - foreach ($alreadyAddedTeachers as $userId => $userInfo) { + // Add new teachers only + foreach ($teachers as $userId => $userInfo) { SessionManager::set_coach_to_course_session($userId, $session['id'], $course_code); } }