From 7cfc30ac25f01975ddca25efdb3ca600b030aa3b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Nov 2021 16:15:10 +0300 Subject: format_backtrace: revise previous to only try truncating/adding actual strings --- include/errorhandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/errorhandler.php b/include/errorhandler.php index ff2af8cd0..30b6902b3 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -19,7 +19,7 @@ function format_backtrace($trace): string { array_push($fmt_args, "[" . truncate_string(json_encode($a), 256, "...")) . "]"; } else if (is_resource($a)) { array_push($fmt_args, truncate_string(get_resource_type($a), 256, "...")); - } else if ($a) { + } else if (is_string($a)) { array_push($fmt_args, truncate_string($a, 256, "...")); } } -- cgit v1.2.3