From 0aca0027e30211c10e12d95961fd07243ad4a99f Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Oct 2007 09:00:27 +0000 Subject: [PATCH] Updated error_reporting settings for imap server detection in class_config git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7502 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index 9e4339de7..dbf8e9790 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -318,7 +318,7 @@ class config { $ldap->search ("(objectClass=goImapServer)"); $this->data['SERVERS']['IMAP']= array(); - error_reporting(0); + $old_err = error_reporting(0); while ($attrs= $ldap->fetch()){ $name= $attrs['goImapName'][0]; $this->data['SERVERS']['IMAP'][$name]= array( "connect" => $attrs['goImapConnect'][0], @@ -327,7 +327,7 @@ class config { "sieve_server" => $attrs['goImapSieveServer'][0], "sieve_port" => $attrs['goImapSievePort'][0]); } - error_reporting(E_ALL | E_STRICT); + error_reporting($old_err); /* Get kerberos server. FIXME: only one is supported currently */ $ldap->cd ($this->current['BASE']); -- 2.30.2