X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fphp_setup.inc;h=03727fce5982c85356ac3dcf53927404382bcd16;hb=c98b37e992e237594d57ef86bddfb54de5f38a7b;hp=5fcfd69d0689d6628d27cd9d06c0b0dfa7dcd0d6;hpb=d2726983b0ac889de817ab5162cfbc7204a6e4fd;p=gosa.git diff --git a/include/php_setup.inc b/include/php_setup.inc index 5fcfd69d0..03727fce5 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -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; @@ -64,10 +65,10 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) /* Create header as needed */ if ($error_collector == ""){ - if ($_SESSION['js']==FALSE){ + if (isset($_SESSION['js']) && $_SESSION['js']==FALSE){ $error_collector= "