* Hopefully squashed all those annoying "flags" workarounds
[squirrelmail.git] / functions / addressbook.php
index fe2796fd6ebadb2c235f8e4b9da76bc84496b5e8..fa53c7e30c5e591f678331c921b1de314ec45640 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)) {