summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-21 18:29:08 +0100
committerAndrew Dolgov <[email protected]>2006-12-21 18:29:08 +0100
commit22e007324cfa1d814a24221977f283af636cf7af (patch)
tree853d488343cba524e60d665233eb06056a11656e /functions.php
parentd3f24242f8d295567332a2813216a9b003d56781 (diff)
fix tag browser/rpc counters to work for users with uid != 2
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index a65a1a009..22f2b00fa 100644
--- a/functions.php
+++ b/functions.php
@@ -1749,7 +1749,7 @@
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries WHERE int_id = post_int_id
AND unread = true)) AS count FROM ttrss_tags
- WHERE owner_uid = 2 GROUP BY tag_name ORDER BY tag_name");
+ WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name ORDER BY tag_name");
$tags = array();
@@ -3049,7 +3049,7 @@
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries WHERE int_id = post_int_id
AND unread = true)) AS count FROM ttrss_tags
- WHERE owner_uid = 2 GROUP BY tag_name ORDER BY tag_name");
+ WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name ORDER BY tag_name");
$tags = array();