summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-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)) {