summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-09-08 09:04:15 +0300
committerAndrew Dolgov <[email protected]>2021-09-08 09:04:15 +0300
commit8ed927dbd2b54aaabe6be75f9fcf4145e2c3249a (patch)
treea1b13b4e41c2489d2652e10dcdedd63a10d62c43 /include
parent78ff7770d164175f4c78f41c787b87c9fe631006 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/errorhandler.php2
1 files changed, 1 insertions, 1 deletions
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) . "}");