From 7e662bc83579641e7229228fd84d11f330d59a91 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 25 Oct 2016 14:57:25 +0100 Subject: [PATCH] Add unknown file / line text --- core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.php b/core.php index bdebd72..b865cc6 100644 --- a/core.php +++ b/core.php @@ -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"];