summaryrefslogtreecommitdiff
path: root/mobile
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-08-16 14:19:24 +0100
committerAndrew Dolgov <[email protected]>2006-08-16 14:19:24 +0100
commit26eb0119a591db451551bb11afe214b23725c8fc (patch)
tree5e808c952d98fe03b35517718454ce3dfe2830af /mobile
parent318260cc8a4b09403678a1a953fc7d646d3c268d (diff)
use getCategoryUnread in outputFeedList, misc fixes
Diffstat (limited to 'mobile')
-rw-r--r--mobile/functions.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/mobile/functions.php b/mobile/functions.php
index d35e6e237..398a12a55 100644
--- a/mobile/functions.php
+++ b/mobile/functions.php
@@ -204,16 +204,9 @@
$cat_id_qpart = "cat_id IS NULL";
}
- $tmp_result = db_query($link, "SELECT count(int_id) AS unread
- FROM ttrss_user_entries,ttrss_feeds WHERE
- unread = true AND
- feed_id = ttrss_feeds.id AND $cat_id_qpart AND
- ttrss_user_entries.owner_uid = " . $_SESSION["uid"]);
-
- $cat_unread = db_fetch_result($tmp_result, 0, "unread");
-
$cat_id = sprintf("%d", $cat_id);
-
+ $cat_unread = getCategoryUnread($link, $cat_id);
+
print "<li class=\"feedCat\">
<a href=\"?subop=tc&id=$cat_id\">$tmp_category</a>
<a href=\"?go=vf&id=$cat_id&cat=true\">