From: cajus Date: Wed, 18 May 2005 17:24:12 +0000 (+0000) Subject: Made error messages appear only in development tree X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52a0995d34c8605e42bc9fc488597f3b751021e9;p=gosa.git Made error messages appear only in development tree git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@249 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;