summaryrefslogtreecommitdiff
path: root/include/errorhandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/errorhandler.php')
-rw-r--r--include/errorhandler.php2
1 files changed, 1 insertions, 1 deletions
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, "..."));
}
}