From 7bf7e4d3ef9b2993f24caff2339fcf78a2027321 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 13 Aug 2006 10:45:30 +0100 Subject: rework auto-refresh method if number of subscriptions changed --- functions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index a46061bda..4ca5582d3 100644 --- a/functions.php +++ b/functions.php @@ -1562,7 +1562,17 @@ if ($global_unread == -1) { $global_unread = getGlobalUnread($link); } - print ""; + print ""; + + $result = db_query($link, "SELECT COUNT(id) AS fn FROM + ttrss_feeds WHERE owner_uid = " . $_SESSION["uid"]); + + $subscribed_feeds = db_fetch_result($result, 0, "fn"); + + print ""; + } function getTagCounters($link, $smart_mode = SMART_RPC_COUNTERS) { -- cgit v1.2.3-54-g00ecf