Code

Made exact match for true/false
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Jun 2005 07:19:04 +0000 (07:19 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 28 Jun 2005 07:19:04 +0000 (07:19 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@884 594d385d-05f5-0310-b6e9-bd551577e9d8

include/php_setup.inc

index 5fcfd69d0689d6628d27cd9d06c0b0dfa7dcd0d6..e746e41409943bfcd6a84cfe03b0fb610a45713c 100644 (file)
@@ -54,7 +54,8 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
   }
 
   if((isset($config->data))){ 
-    if((isset($config->data['MAIN']['DISPLAYERRORS']))&&(!preg_match("/true/i",$config->data['MAIN']['DISPLAYERRORS']))){
+    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;