From: hickert Date: Tue, 28 Jun 2005 07:15:30 +0000 (+0000) Subject: added display error switch to gosa.conf X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d2726983b0ac889de817ab5162cfbc7204a6e4fd;p=gosa.git added display error switch to gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@883 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/gosa.conf b/contrib/gosa.conf index 1cb7f8567..a45dbb93f 100644 --- a/contrib/gosa.conf +++ b/contrib/gosa.conf @@ -162,7 +162,8 @@ iconsize="48x48" pwminlen="6" forceglobals="false" - smbhash='{SMBHASH}'> + smbhash='{SMBHASH}' + displayerros="false"> data))){ + if((isset($config->data['MAIN']['DISPLAYERRORS']))&&(!preg_match("/true/i",$config->data['MAIN']['DISPLAYERRORS']))){ + /* Write to syslog */ + gosa_log ("PHP error: $errstr ($errfile, line $errline)"); + return; + } + } + + /* Create header as needed */ if ($error_collector == ""){ if ($_SESSION['js']==FALSE){ @@ -117,9 +126,6 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) /* Close error table */ $error_collector.= ""; - /* Write to syslog */ - gosa_log ("PHP error: $errstr ($errfile, line $errline)"); - /* Flush in case of fatal errors */ if (preg_match('/^fatal/i', $errstr)){ echo $error_collector."";