";
/* Extract traceback data - if available */
if (function_exists('debug_backtrace')){
@@ -96,8 +106,10 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
$type= "-";
}
$args= "";
- foreach ($ct['args'] as $arg){
- $args.= htmlentities("\"$arg\", ");
+ if (isset($ct['args'])){
+ foreach ($ct['args'] as $arg){
+ $args.= htmlentities("\"$arg\", ");
+ }
}
$args= preg_replace("/, $/", "", $args);
if ($args == ""){
@@ -115,9 +127,6 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline)
/* Close error table */
$error_collector.= "
";
- /* Write to syslog */
- gosa_log ("PHP error: $errstr ($errfile, line $errline)");
-
/* Flush in case of fatal errors */
if (preg_match('/^fatal/i', $errstr)){
echo $error_collector."";