mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Fixed a wrong call to add_teacher in LDAP plugin (Merged from MOODLE_15_STABLE)
This commit is contained in:
parent
dc109497d4
commit
20fdb1b755
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ function get_user_courses(&$user, $type) {
|
|||
}
|
||||
} else if ($type === 'teacher') {
|
||||
error_log("Enrolling teacher $user->id ($user->username) in course $course_obj->id ($course_obj->shortname)");
|
||||
add_teacher($user->id, $course_obj->id, 1, 0, 0,'ldap');
|
||||
add_teacher($user->id, $course_obj->id, 1, '', 0, 0,'ldap');
|
||||
}
|
||||
$CFG->debug=0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue