Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed a wrong call to add_teacher in LDAP plugin (Merged from MOODLE_…
…15_STABLE)
  • Loading branch information
patrickslee committed Nov 2, 2005
1 parent dc10949 commit 20fdb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/ldap/enrol.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20fdb1b

Please sign in to comment.