* Removed a potential warning and potential config problem (like the plugins)
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2001 18:39:50 +0000 (18:39 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 6 Feb 2001 18:39:50 +0000 (18:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1062 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/addressbook.php

index fe2796f..fa53c7e 100644 (file)
@@ -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)) {