pref-feeds: disable show empty cats when searching
This commit is contained in:
parent
17c755f048
commit
f393dc6fb2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue