diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index fb0ad10ae7e..afb3b257aea 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -1241,8 +1241,8 @@ function auth_ldap_connect($binddn='',$bindpwd=''){ $urls = explode(";",$CFG->ldap_host_url); foreach ($urls as $server){ - $url = trim($server); - if (empty($url)) { + $server = trim($server); + if (empty($server)) { continue; }