summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
-rw-r--r--include/rssfuncs.php8
2 files changed, 7 insertions, 3 deletions
diff --git a/include/functions.php b/include/functions.php
index f1e78dfb7..6337dbbde 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3437,7 +3437,7 @@
function format_article_labels($labels, $id) {
- if (is_array($labels)) return '';
+ if (!is_array($labels)) return '';
$labels_str = "";
diff --git a/include/rssfuncs.php b/include/rssfuncs.php
index 3c7716721..0ecab6a25 100644
--- a/include/rssfuncs.php
+++ b/include/rssfuncs.php
@@ -1271,8 +1271,12 @@
$match = @preg_match("/$reg_exp/i", $author);
break;
case "tag":
- $tag_string = join(",", $tags);
- $match = @preg_match("/$reg_exp/i", $tag_string);
+ foreach ($tags as $tag) {
+ if (@preg_match("/$reg_exp/i", $tag)) {
+ $match = true;
+ break;
+ }
+ }
break;
}