do not use prefs_feed_search when displaying main UI feedtree

This commit is contained in:
Andrew Dolgov 2012-09-15 16:24:00 +04:00
parent bc6fa2364b
commit 6e0ee8336f
1 changed files with 9 additions and 2 deletions

View File

@ -25,7 +25,11 @@ class Pref_Feeds extends Handler_Protected {
}
private function get_category_items($cat_id) {
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() {
if ($_REQUEST['mode'] != 2)
$search = $_SESSION["prefs_feed_search"];
else
$search = "";
if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')";