diff options
author | fox <[email protected]> | 2022-08-17 19:38:15 +0300 |
---|---|---|
committer | fox <[email protected]> | 2022-08-17 19:38:15 +0300 |
commit | 60658be5bc35192f9b2d9aaf413454f29fe51316 (patch) | |
tree | d7f6aa1b6bf3eaa4d7a9601e46e15441bc737d9e /plugins/af_comics/init.php | |
parent | ec764f97e7e3e0fac20f93364c84dfa01651bf95 (diff) | |
parent | 0dbed700efa77355839a4d2cddf02f93203dc96f (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/init.php')
-rwxr-xr-x | plugins/af_comics/init.php | 5 |
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) { |