From 799b907093a0b29b09900445939071ed1c742c15 Mon Sep 17 00:00:00 2001 From: pallo Date: Tue, 28 Mar 2000 19:28:03 +0000 Subject: [PATCH] More verbose error reporting. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@353 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/addressbook.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/functions/addressbook.php b/functions/addressbook.php index c57fdb24..5ba87caa 100644 --- a/functions/addressbook.php +++ b/functions/addressbook.php @@ -33,9 +33,17 @@ // Load configured LDAP servers reset($ldap_server); - while(list($key,$param) = each($ldap_server)) - if(is_array($param)) - $abook->add_backend("ldap_server", $param); + while(list($key,$param) = each($ldap_server)) { + if(is_array($param)) { + $r = $abook->add_backend("ldap_server", $param); + if(!$r) { + printf(" "._("Error initializing LDAP server %s:")."
\n", + $param["host"]); + printf(" ".$abook->error); + exit; + } + } + } // Return the initialized object return $abook; -- 2.25.1