From: Andrew Dolgov Date: Sat, 15 Sep 2012 12:24:00 +0000 (+0400) Subject: do not use prefs_feed_search when displaying main UI feedtree X-Git-Tag: 1.6.0~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6e0ee8336f556b37e7fc9c4144a71050f6a9cfc0;p=tt-rss.git do not use prefs_feed_search when displaying main UI feedtree --- diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php index 3a7da72d..e396c5ab 100644 --- a/classes/pref/feeds.php +++ b/classes/pref/feeds.php @@ -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%')";