mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 10:31:28 +00:00
fix search dialog in tag mode
This commit is contained in:
@@ -2541,7 +2541,7 @@
|
|||||||
|
|
||||||
$params = split(":", db_escape_string($_GET["param"]));
|
$params = split(":", db_escape_string($_GET["param"]));
|
||||||
|
|
||||||
$active_feed_id = $params[0];
|
$active_feed_id = sprintf("%d", $params[0]);
|
||||||
$is_cat = $params[1] == "true";
|
$is_cat = $params[1] == "true";
|
||||||
|
|
||||||
print "<table width='100%'><tr><td>Search:</td><td>";
|
print "<table width='100%'><tr><td>Search:</td><td>";
|
||||||
@@ -2575,7 +2575,7 @@
|
|||||||
$cat_preselected = "selected";
|
$cat_preselected = "selected";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_pref($link, 'ENABLE_FEED_CATS') && $active_feed_id >= 0) {
|
if (get_pref($link, 'ENABLE_FEED_CATS') && ($active_feed_id > 0 || $is_cat)) {
|
||||||
print "<option $cat_preselected value=\"this_cat\">This category ($feed_cat_title)</option>";
|
print "<option $cat_preselected value=\"this_cat\">This category ($feed_cat_title)</option>";
|
||||||
} else {
|
} else {
|
||||||
print "<option disabled>This category</option>";
|
print "<option disabled>This category</option>";
|
||||||
|
|||||||
Reference in New Issue
Block a user