diff options
author | Andrew Dolgov <[email protected]> | 2023-04-13 06:20:04 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-04-13 06:20:04 +0300 |
commit | 1e90feef0e0cd7a2ad18ea9547ccedbe49a26991 (patch) | |
tree | 412363148854d9a393ac82607646c85b91657a88 | |
parent | c314bd87421cf682b0885713d6e8b4a0a3841deb (diff) |
fix 881f8805bd behaving improperly
-rwxr-xr-x | classes/rssutils.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index 702675661..d1096cc85 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1542,7 +1542,8 @@ class RSSUtils { $match = @preg_match("/$reg_exp/iu", $author); break; case "tag": - array_push($tags, ''); // allow matching if there are no tags + if (count($tags) == 0) + array_push($tags, ''); // allow matching if there are no tags foreach ($tags as $tag) { if (@preg_match("/$reg_exp/iu", $tag)) { |