From: Andrew Dolgov Date: Thu, 11 Nov 2010 20:23:29 +0000 (+0300) Subject: pref-filters: do not show action_param for filter types which take no params X-Git-Tag: 1.5.0~268 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=799e1b390e1a3730d422340ce43a2c4a0feb2aae;p=tt-rss.git pref-filters: do not show action_param for filter types which take no params --- diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 5df8a8ce..1d4f0f98 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -421,6 +421,12 @@ if (!$line["feed_title"]) $line["feed_title"] = __("All feeds"); + if (array_search($line["action_name"], + array("score", "tag", "label")) === false) { + + $line["action_param"] = false; + } + if (!$line["action_param"]) { $line["action_param"] = "—"; } else if ($line["action_name"] == "score") {