From 3323ae78ce4e021b4ffc00b96770fc23bbbc8e47 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 20 Nov 2021 16:11:44 +0300 Subject: * sql_bool_to_bool: make parameter nullable * errorhandler: don't try to truncate null strings * UrlHelper::rewrite_relative: fix undefined offset warnings for URLs that lack schema/host (data: etc) --- include/errorhandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/errorhandler.php') diff --git a/include/errorhandler.php b/include/errorhandler.php index 09d6bd7bc..ff2af8cd0 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 { + } else if ($a) { array_push($fmt_args, truncate_string($a, 256, "...")); } } -- cgit v1.2.3-54-g00ecf