From: Andrew Dolgov Date: Fri, 8 Dec 2006 07:47:15 +0000 (+0100) Subject: tag filter action - block empty tags X-Git-Tag: 1.2.6~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=df74052f1e93435b50233ce33d1f4fd27e795690;p=tt-rss.git tag filter action - block empty tags --- diff --git a/functions.php b/functions.php index dbc43235..a65a1a00 100644 --- a/functions.php +++ b/functions.php @@ -762,7 +762,7 @@ $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); } }