summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-01 05:33:31 +0100
committerAndrew Dolgov <[email protected]>2006-08-01 05:33:31 +0100
commitb788b632415181c17f12b6b28022c7417c694f5f (patch)
tree49d520a941ca2381ab699228c1a59bde9d3e4b62
parent0a6c4846cd819d8d0f50e184a45569e70e22ec4d (diff)
fix search dialog in tag mode
-rw-r--r--backend.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index 6f4c932fb..507722379 100644
--- a/backend.php
+++ b/backend.php
@@ -2541,7 +2541,7 @@
$params = split(":", db_escape_string($_GET["param"]));
- $active_feed_id = $params[0];
+ $active_feed_id = sprintf("%d", $params[0]);
$is_cat = $params[1] == "true";
print "<table width='100%'><tr><td>Search:</td><td>";
@@ -2575,7 +2575,7 @@
$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>";
} else {
print "<option disabled>This category</option>";