From 95a4d30321ccf7f230bd008904d750fe4bc68b29 Mon Sep 17 00:00:00 2001 From: pallo Date: Wed, 9 Aug 2000 12:48:50 +0000 Subject: [PATCH] Only configure LDAP-addressbook(s) if PHP has LDAP support. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@686 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/addressbook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/addressbook.php b/functions/addressbook.php index 21b6f1c6..437d98bb 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -33,8 +33,8 @@ if($onlylocal) return $abook; - // Load configured LDAP servers - if(is_array($ldap_server)) { + // Load configured LDAP servers (if PHP has LDAP support) + if(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