From e2b7a855409dfd1fc1b26e8457134f192e00653a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 17 Dec 2009 20:47:03 +0300 Subject: reenable Special category --- mobile/functions.php | 127 ++++++++++++++++++++++++++------------------------- 1 file changed, 66 insertions(+), 61 deletions(-) diff --git a/mobile/functions.php b/mobile/functions.php index b7b842b65..e07225da7 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -11,77 +11,82 @@ function render_category($link, $cat_id) { $owner_uid = $_SESSION["uid"]; - if ($cat_id != 0) { - $cat_query = "cat_id = '$cat_id'"; - } else { - $cat_query = "cat_id IS NULL"; - } - - $result = db_query($link, "SELECT id, - title, - (SELECT COUNT(id) FROM ttrss_entries,ttrss_user_entries - WHERE feed_id = ttrss_feeds.id AND unread = true - AND ttrss_user_entries.ref_id = ttrss_entries.id - AND owner_uid = '$owner_uid') as unread - FROM ttrss_feeds - WHERE - ttrss_feeds.hidden = false AND - ttrss_feeds.owner_uid = '$owner_uid' AND - parent_feed IS NULL AND - $cat_query - ORDER BY unread DESC,title"); - - $title = getCategoryTitle($link, $cat_id); - - print ""; - - /* print ""; + } } function render_categories_list($link) { -- cgit v1.2.3