From 05da99c428e9a87d6e38d4f37f54e32879e2ece0 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 3 Apr 2023 22:14:41 +0000 Subject: [PATCH] fix error in error handler --- core/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/util.php b/core/util.php index 84796074..f761a599 100644 --- a/core/util.php +++ b/core/util.php @@ -645,7 +645,7 @@ function _fatal_error(\Exception $e): void foreach ($t as $n => $f) { $c = $f['class'] ?? ''; $t = $f['type'] ?? ''; - $a = implode(", ", array_map("Shimmie2\stringer", $f['args'])); + $a = implode(", ", array_map("Shimmie2\stringer", $f['args'] ?? [])); print("$n: {$f['file']}({$f['line']}): {$c}{$t}{$f['function']}({$a})\n"); }