pref-filters: do not show action_param for filter types which take no params
This commit is contained in:
parent
a627ae354b
commit
799e1b390e
|
@ -421,6 +421,12 @@
|
||||||
|
|
||||||
if (!$line["feed_title"]) $line["feed_title"] = __("All feeds");
|
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"]) {
|
if (!$line["action_param"]) {
|
||||||
$line["action_param"] = "—";
|
$line["action_param"] = "—";
|
||||||
} else if ($line["action_name"] == "score") {
|
} else if ($line["action_name"] == "score") {
|
||||||
|
|
Loading…
Reference in New Issue