1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 13:45:02 +00:00

Add unknown file / line text

This commit is contained in:
Starbeamrainbowlabs 2016-10-25 14:57:25 +01:00 committed by GitHub
parent b97dfe7d4f
commit 7e662bc835

View file

@ -469,7 +469,7 @@ function stack_trace($log_trace = true, $full = false)
foreach ($stackTrace as $i => $stackEntry)
{
$result .= "#" . ($stackHeight - $i) . ": ";
$result .= (isset($stackEntry["file"]) ? $stackEntry["file"] : "") . ":" . (isset($stackEntry["line"]) ? $stackEntry["line"] : "") . " - ";
$result .= (isset($stackEntry["file"]) ? $stackEntry["file"] : "(unknown file)") . ":" . (isset($stackEntry["line"]) ? $stackEntry["line"] : "(unknown line)") . " - ";
if(isset($stackEntry["function"]))
{
$result .= "(in " . $stackEntry["function"];