From 52a0995d34c8605e42bc9fc488597f3b751021e9 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 18 May 2005 17:24:12 +0000 Subject: [PATCH] Made error messages appear only in development tree git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@249 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/functions.inc b/include/functions.inc index ef29c218b..cf2787b8c 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1513,6 +1513,13 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) { global $error_collector; + $svn_path = '$HeadURL$'; + + if (!preg_match('%/gosa/trunk/%', $svn_path)){ + gosa_log ("PHP error: $errstr ($errfile, line $errline)"); + return; + } + /* FIXME: workaround for buggy imap_open */ if (preg_match('/imap_open/', $errstr)){ return; -- 2.30.2