From: Andrew Dolgov Date: Wed, 27 Jan 2010 15:28:37 +0000 (+0300) Subject: fix multiple TAG filters not being applied properly X-Git-Tag: 1.4.1~29 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4d50f419ee5039b91fd542e7719b1b5c9b0f5015;p=tt-rss.git fix multiple TAG filters not being applied properly --- diff --git a/functions.php b/functions.php index 6a18ffbf..ec0f484a 100644 --- a/functions.php +++ b/functions.php @@ -1371,15 +1371,15 @@ # check for manual tags - $tag_filter = find_article_filter($article_filters, "tag"); + foreach ($article_filters as $f) { + if ($f[0] == "tag") { - if ($tag_filter) { + $manual_tags = trim_array(split(",", $f[1])); - $manual_tags = trim_array(split(",", $tag_filter[1])); - - foreach ($manual_tags as $tag) { - if (tag_is_valid($tag)) { - array_push($entry_tags, $tag); + foreach ($manual_tags as $tag) { + if (tag_is_valid($tag)) { + array_push($entry_tags, $tag); + } } } }