fix tag browser/rpc counters to work for users with uid != 2
This commit is contained in:
parent
d3f24242f8
commit
22e007324c
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue