]> git.wh0rd.org Git - tt-rss.git/commitdiff
do not use prefs_feed_search when displaying main UI feedtree
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 15 Sep 2012 12:24:00 +0000 (16:24 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 15 Sep 2012 12:24:00 +0000 (16:24 +0400)
classes/pref/feeds.php

index 3a7da72d3c3ed858010d427d910b823af6d9c9e8..e396c5ab1386240edd39040c9398c9df3a1a23f0 100644 (file)
@@ -25,7 +25,11 @@ class Pref_Feeds extends Handler_Protected {
        }
 
        private function get_category_items($cat_id) {
-               $search = $_SESSION["prefs_feed_search"];
+
+               if ($_REQUEST['mode'] != 2)
+                       $search = $_SESSION["prefs_feed_search"];
+               else
+                       $search = "";
 
                if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')";
 
@@ -85,7 +89,10 @@ class Pref_Feeds extends Handler_Protected {
 
        function getfeedtree() {
 
-               $search = $_SESSION["prefs_feed_search"];
+               if ($_REQUEST['mode'] != 2)
+                       $search = $_SESSION["prefs_feed_search"];
+               else
+                       $search = "";
 
                if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')";