Change to make LDAP enroller simply ignore accounts with blank idnumber - see moodle.org discussion with Inaki

This commit is contained in:
danstowell 2006-07-06 13:13:42 +00:00
parent 1c23b14db3
commit 6d19caab41

View file

@ -485,6 +485,10 @@ function find_ext_enrolments ($ldap_connection, $memberuid, $type){
global $CFG;
if(empty($memberuid)) { // No "idnumber" stored for this user, so no LDAP enrolments
return array();
}
//default return value
$courses = array();
$this->enrol_ldap_bind($ldap_connection);