From 6aff2ff645018a61b431d333f00c7b6f1191a0b3 Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 6 Feb 2001 18:39:50 +0000 Subject: [PATCH] * Removed a potential warning and potential config problem (like the plugins) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1062 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/addressbook.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.25.1