From 4c11c97f3cdb417ab907bec8556fc439fd7c2288 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Feb 2006 08:31:47 +0000 Subject: [PATCH] Fixed debug, to shown first line nr .... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2716 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/php_setup.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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"; -- 2.30.2