diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index 3ad298060c..f814a41f1d 100644 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -1365,7 +1365,7 @@ class CourseManager { return $teachers; } - public static function get_teacher_list_from_course_code_to_string($course_code) { + public static function get_teacher_list_from_course_code_to_string($course_code, $separator = ',') { $teacher_list = self::get_teacher_list_from_course_code($course_code); $teacher_string = ''; $list = array(); @@ -1374,7 +1374,7 @@ class CourseManager { $list[]= api_get_person_name($teacher['firstname'], $teacher['lastname']); } if (!empty($list)) { - $teacher_string = implode (', ', $list); + $teacher_string = implode($separator.' ', $list); } } return $teacher_string;