]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix pref-feeds search
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Sep 2012 08:47:09 +0000 (12:47 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Sep 2012 08:47:09 +0000 (12:47 +0400)
classes/pref/feeds.php

index a1177f2dd8c3ba848a14bbd089e28383568887af..77622d533e4a43b5fbe375a9e15137d2ca73eea5 100644 (file)
@@ -25,6 +25,10 @@ class Pref_Feeds extends Handler_Protected {
        }
 
        private function get_category_items($cat_id) {
+               $search = $_SESSION["prefs_feed_search"];
+
+               if ($search) $search_qpart = " AND LOWER(title) LIKE LOWER('%$search%')";
+
                $show_empty_cats = $_REQUEST['mode'] != 2 &&
                        get_pref($this->link, '_PREFS_SHOW_EMPTY_CATS');