]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix BLACKLISTED_TAGS checking
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 May 2007 07:53:39 +0000 (08:53 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 May 2007 07:53:39 +0000 (08:53 +0100)
functions.php

index f6e3cdacd2dd1360226ee625cda8df62fc90f0f6..17712ebceb5a5221fb5ae875aac14f97a026c1de 100644 (file)
 
                                if ($additional_tags && is_array($additional_tags)) {
                                        foreach ($additional_tags as $tag) {
-                                               if (tag_is_valid($tag) && !array_key_exists($tag, $boring_tags)) {
+                                               if (tag_is_valid($tag) && 
+                                                               array_search($tag, $boring_tags) === FALSE) {
                                                        array_push($entry_tags, $tag);
                                                }
                                        }