X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Faddressbook.php;h=fa53c7e30c5e591f678331c921b1de314ec45640;hb=4afa7206a144844010fde445235b2ee752de8692;hp=fe2796fd6ebadb2c235f8e4b9da76bc84496b5e8;hpb=74bd0763f3df2ec1b076555fbffa92fe7b4cddb2;p=squirrelmail.git diff --git a/functions/addressbook.php b/functions/addressbook.php index fe2796fd..fa53c7e3 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -56,7 +56,8 @@ return $abook; // Load configured LDAP servers (if PHP has LDAP support) - if(is_array($ldap_server) && function_exists('ldap_connect')) { + if(isset($ldap_server) && is_array($ldap_server) && + function_exists('ldap_connect')) { reset($ldap_server); while(list($undef,$param) = each($ldap_server)) { if(is_array($param)) {