diff --git a/main/exercice/exercise.class.php b/main/exercice/exercise.class.php index d3bcb33000..263e702122 100644 --- a/main/exercice/exercise.class.php +++ b/main/exercice/exercise.class.php @@ -3445,7 +3445,7 @@ class Exercise { if (api_get_session_id()) { $teachers = CourseManager::get_coach_list_from_course_code($coursecode, api_get_session_id()); } else { - $teachers = CourseManager::get_teacher_list_from_course_code($coursecode); + $teachers = CourseManager::get_teacher_list_from_course_code($courseInfo['code']); } if (!empty($teachers)) {