1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-12 23:45:55 +00:00

format_backtrace: revise previous to only try truncating/adding actual strings

This commit is contained in:
Andrew Dolgov
2021-11-20 16:15:10 +03:00
parent 3323ae78ce
commit 7cfc30ac25

View File

@@ -19,7 +19,7 @@ function format_backtrace($trace): string {
array_push($fmt_args, "[" . truncate_string(json_encode($a), 256, "...")) . "]"; array_push($fmt_args, "[" . truncate_string(json_encode($a), 256, "...")) . "]";
} else if (is_resource($a)) { } else if (is_resource($a)) {
array_push($fmt_args, truncate_string(get_resource_type($a), 256, "...")); 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, "...")); array_push($fmt_args, truncate_string($a, 256, "..."));
} }
} }