From 8ed927dbd2b54aaabe6be75f9fcf4145e2c3249a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 8 Sep 2021 09:04:15 +0300 Subject: OPML: multiple fixes - remove unused integer indexes when exporting filters as JSON - fix warning when importing filters without rules - properly assign category IDs for category filter rules - fix warning: check if outline attributes like xmlUrl are set before trying to use them - fix warning: don't try to use libxml_disable_entity_loader on PHP 8 --- 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 2ad0be062..3211599ba 100644 --- a/include/errorhandler.php +++ b/include/errorhandler.php @@ -8,7 +8,7 @@ function format_backtrace($trace) { if (isset($e["file"]) && isset($e["line"])) { $fmt_args = []; - if (is_array($e["args"])) { + if (is_array($e["args"] ?? false)) { foreach ($e["args"] as $a) { if (is_object($a)) { array_push($fmt_args, "{" . get_class($a) . "}"); -- cgit v1.2.3