summaryrefslogtreecommitdiff
path: root/plugins/af_comics
diff options
context:
space:
mode:
authorfox <[email protected]>2022-08-17 19:38:15 +0300
committerfox <[email protected]>2022-08-17 19:38:15 +0300
commit60658be5bc35192f9b2d9aaf413454f29fe51316 (patch)
treed7f6aa1b6bf3eaa4d7a9601e46e15441bc737d9e /plugins/af_comics
parentec764f97e7e3e0fac20f93364c84dfa01651bf95 (diff)
parent0dbed700efa77355839a4d2cddf02f93203dc96f (diff)
Merge pull request 'Use PHP 7.4 features' (#77) from wn/tt-rss:feature/php-7.4-stuff into master
Reviewed-on: https://dev.tt-rss.org/fox/tt-rss/pulls/77
Diffstat (limited to 'plugins/af_comics')
-rwxr-xr-xplugins/af_comics/init.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/af_comics/init.php b/plugins/af_comics/init.php
index a9a8f3faa..0649cf92c 100755
--- a/plugins/af_comics/init.php
+++ b/plugins/af_comics/init.php
@@ -19,7 +19,10 @@ class Af_Comics extends Plugin {
require_once __DIR__ . "/filter_base.php";
- $filters = array_merge(glob(__DIR__ . "/filters.local/*.php"), glob(__DIR__ . "/filters/*.php"));
+ $filters = [
+ ...(glob(__DIR__ . "/filters.local/*.php") ?: []),
+ ...(glob(__DIR__ . "/filters/*.php") ?: []),
+ ];
$names = [];
foreach ($filters as $file) {