]> git.mjollnir.org Git - moodle.git/commitdiff
Change to make LDAP enroller simply ignore accounts with blank idnumber - see moodle...
authordanstowell <danstowell>
Thu, 6 Jul 2006 13:13:42 +0000 (13:13 +0000)
committerdanstowell <danstowell>
Thu, 6 Jul 2006 13:13:42 +0000 (13:13 +0000)
enrol/ldap/enrol.php

index 0664da8f5728b0292533e0f81b3fb789c7396cc6..93bc7115d93a2b8c3a07fd49a80cd902ef864aee 100755 (executable)
@@ -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);