From: martinlanghoff Date: Mon, 17 Jan 2005 21:07:00 +0000 (+0000) Subject: Fixed bogus warnings about empty LDAP contexts. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6ebaf0edcb358a1c2b7ea865cc36a7eca8a833fa;p=moodle.git Fixed bogus warnings about empty LDAP contexts. --- diff --git a/enrol/ldap/enrol.php b/enrol/ldap/enrol.php index 85519d07fb..d626b63807 100755 --- a/enrol/ldap/enrol.php +++ b/enrol/ldap/enrol.php @@ -508,6 +508,9 @@ function find_ext_enrolments ($ldap_connection, $memberuid, $type){ foreach ($ldap_contexts as $context) { $context == trim($context); + if (empty($context)) { + continue; // next; + } if ($CFG->enrol_ldap_search_sub){ //use ldap_search to find first user from subtree