Fixed a wrong call to add_teacher in LDAP plugin

This commit is contained in:
patrickslee
2005-11-02 20:34:00 +00:00
parent 11889a8466
commit f7d818d5c5
+1 -1
View File
@@ -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;
}