pref-feeds: disable show empty cats when searching

This commit is contained in:
Andrew Dolgov 2012-09-13 12:54:11 +04:00
parent 17c755f048
commit f393dc6fb2
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class Pref_Feeds extends Handler_Protected {
if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')"; if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')";
$show_empty_cats = $_REQUEST['mode'] != 2 && $show_empty_cats = $_REQUEST['mode'] != 2 && !$search &&
get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS'); get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS');
$items = array(); $items = array();
@ -150,7 +150,7 @@ class Pref_Feeds extends Handler_Protected {
} }
if ($enable_cats) { if ($enable_cats) {
$show_empty_cats = $_REQUEST['mode'] != 2 && $show_empty_cats = $_REQUEST['mode'] != 2 && !$search &&
get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS'); get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS');
$result = db_query($this->link, "SELECT id, title, collapsed FROM ttrss_feed_categories $result = db_query($this->link, "SELECT id, title, collapsed FROM ttrss_feed_categories