From 6e0ee8336f556b37e7fc9c4144a71050f6a9cfc0 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 15 Sep 2012 16:24:00 +0400 Subject: [PATCH] do not use prefs_feed_search when displaying main UI feedtree --- classes/pref/feeds.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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%')"; -- 2.39.5