Code

Made error messages appear only in development tree
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 May 2005 17:24:12 +0000 (17:24 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 18 May 2005 17:24:12 +0000 (17:24 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@249 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index ef29c218b52ff802a3ee9379210cf888fa6af945..cf2787b8c502d99d0d87742b55050dedda9d26a2 100644 (file)
@@ -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;