Code

Updated error_reporting settings for imap server detection in class_config
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 09:00:27 +0000 (09:00 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 09:00:27 +0000 (09:00 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7502 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_config.inc

index 9e4339de70665980af724772df30c415ed2cafdd..dbf8e979061a364d28ccb636674a960457de3d4b 100644 (file)
@@ -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']);