summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-13 06:20:04 +0300
committerAndrew Dolgov <[email protected]>2023-04-13 06:20:04 +0300
commit1e90feef0e0cd7a2ad18ea9547ccedbe49a26991 (patch)
tree412363148854d9a393ac82607646c85b91657a88
parentc314bd87421cf682b0885713d6e8b4a0a3841deb (diff)
fix 881f8805bd behaving improperly
-rwxr-xr-xclasses/rssutils.php3
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)) {