]> git.wh0rd.org Git - tt-rss.git/commitdiff
tag filter action - block empty tags
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Dec 2006 07:47:15 +0000 (08:47 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 8 Dec 2006 07:47:15 +0000 (08:47 +0100)
functions.php

index dbc43235847ae4b6453eb1b33778b3c19504cb00..a65a1a0091b32da9e53a8527fe001c03c99011d2 100644 (file)
                                        $manual_tags = trim_array(split(",", $filter_param));
 
                                        foreach ($manual_tags as $tag) {
-                                               if (!preg_match("/^[0-9]*$/", $tag)) {
+                                               if (!preg_match("/^[0-9]*$/", $tag) && $tag != '') {
                                                        array_push($entry_tags, $tag);
                                                }
                                        }