From 799e1b390e1a3730d422340ce43a2c4a0feb2aae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Nov 2010 23:23:29 +0300 Subject: [PATCH] pref-filters: do not show action_param for filter types which take no params --- modules/pref-filters.php | 6 ++++++ 1 file changed, 6 insertions(+) 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") { -- 2.39.5