From: cajus Date: Wed, 1 Jun 2005 18:56:17 +0000 (+0000) Subject: Hide all muted errors for following releases X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f94f5017f1554b1c29d68a9afe12a753ea6659f9;p=gosa.git Hide all muted errors for following releases git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@579 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 44bf12927..b01d42a69 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1517,6 +1517,11 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) { global $error_collector; + /* Return if error reporting is set to zero */ + if (error_reporting() == 0){ + return; + } + /* Workaround for buggy imap_open error outputs */ if (preg_match('/imap_open/', $errstr)){ return;