Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed a wrong call to add_teacher in LDAP plugin

  • Loading branch information...
commit f7d818d5c5d35d8a798e48d872735016f4d284e3 1 parent 11889a8
patrickslee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  enrol/ldap/enrol.php
View
2  enrol/ldap/enrol.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.