]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix search dialog in tag mode
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 1 Aug 2006 04:33:31 +0000 (05:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 1 Aug 2006 04:33:31 +0000 (05:33 +0100)
backend.php

index 6f4c932fb3eac4497806bb47f091875bcf63de87..50772237988026d9a8b1dae24cb3fc5f01cf6485 100644 (file)
 
                        $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>";
                                $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>";