Fixing function call.

1.9.x
Julio Montoya 10 years ago
parent b733ec05d3
commit 952d1ff9c0
  1. 8
      main/inc/lib/sessionmanager.lib.php

@ -3808,7 +3808,13 @@ class SessionManager
CourseManager::unsubscribe_user($teacher['user_id'], $course_code);
}
}
CourseManager::subscribe_user($teacherToAdd, $course_code, COURSEMANAGER);
foreach ($teacherToAdd as $teacherId) {
CourseManager::subscribe_user(
$teacherId,
$course_code,
COURSEMANAGER
);
}
}
}

Loading…
Cancel
Save