From 1e90feef0e0cd7a2ad18ea9547ccedbe49a26991 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Apr 2023 06:20:04 +0300 Subject: fix 881f8805bd behaving improperly --- classes/rssutils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- cgit v1.2.3