From: hickert Date: Thu, 11 Oct 2007 09:00:27 +0000 (+0000) Subject: Updated error_reporting settings for imap server detection in class_config X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0aca0027e30211c10e12d95961fd07243ad4a99f;p=gosa.git 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 --- 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']);