Code

Fixed debug, to shown first line nr ....
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 08:31:47 +0000 (08:31 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Feb 2006 08:31:47 +0000 (08:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2716 594d385d-05f5-0310-b6e9-bd551577e9d8

include/php_setup.inc

index c9f3b3f6d9e493aeb290e126574e229c0faa8fbf..6fafb2dcd9ca9cbacc0a3d395678d3e47760d1bd 100644 (file)
@@ -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.= "<tr style='background-color:$color'><td style='padding-left:20px' width=\"30%\">"._("Trace")."[$index]: $loc</td>";
       $error_collector.= "<td>"._("File").": $file ("._('Line')." $line)</td><td width=\"10%\">"._("Type").": $type</td></tr>";