From: Roland Häder Date: Tue, 22 Dec 2009 10:20:56 +0000 (+0000) Subject: Fixed missing file/line array elements X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=791ac5766fd11b0843ad4a7c19e922493da13ced;p=hub.git Fixed missing file/line array elements --- diff --git a/application/hub/exceptions.php b/application/hub/exceptions.php index 9b70c1328..f098d0668 100644 --- a/application/hub/exceptions.php +++ b/application/hub/exceptions.php @@ -42,6 +42,10 @@ function hub_exception_handler ($exceptionInstance) { } // END - foreach $argsString = substr($argsString, 2); + // Set missing file/line + if (!isset($traceArray['file'])) $traceArray['file'] = 'unknown'; + if (!isset($traceArray['line'])) $traceArray['line'] = 'unknown'; + $backTrace .= sprintf("---------- Pos %d: ---------- Method : %s%s%s(%s) ----- Caller: -----