diff options
-rw-r--r-- | include/errorhandler.php | 2 |
1 files changed, 1 insertions, 1 deletions
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, "...")); } } |