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

View 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%')";