From d2726983b0ac889de817ab5162cfbc7204a6e4fd Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Jun 2005 07:15:30 +0000 Subject: [PATCH] added display error switch to gosa.conf git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@883 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.conf | 3 ++- include/php_setup.inc | 14 ++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) 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.""; -- 2.30.2