From: hickert Date: Wed, 22 Feb 2006 08:31:47 +0000 (+0000) Subject: Fixed debug, to shown first line nr .... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c11c97f3cdb417ab907bec8556fc439fd7c2288;p=gosa.git Fixed debug, to shown first line nr .... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2716 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/php_setup.inc b/include/php_setup.inc index c9f3b3f6d..6fafb2dcd 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -115,8 +115,16 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) if ($args == ""){ $args= "-"; } - $file= $ct['file']; - $line= $ct['line']; + if(isset($ct['file'])) { + $file= $ct['file']; + }else{ + $file=""; + } + if(isset($ct['line'])) { + $line= $ct['line']; + }else{ + $line=""; + } $color= ($index&1)?'#404040':'606060'; $error_collector.= ""._("Trace")."[$index]: $loc"; $error_collector.= ""._("File").": $file ("._('Line')." $line)"._("Type").": $type";