summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-11-02 14:22:37 +0300
committerAndrew Dolgov <[email protected]>2015-11-02 14:22:37 +0300
commit7475580b37263955445c5ea8a9d292b001f7b9c6 (patch)
tree74874b7e4436b7829479145112e2ccfe3bd05311 /include/functions.php
parentd38cd41253aa2281c0f912e53c468bd51d167651 (diff)
getLabelCounters: stricter ownership check
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 310081485..e91072271 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -456,7 +456,7 @@
'method' => 'GET',
'protocol_version'=> 1.1
)));
- }
+ }
$old_error = error_get_last();
@@ -1582,7 +1582,8 @@
FROM ttrss_labels2 LEFT JOIN ttrss_user_labels2 ON
(ttrss_labels2.id = label_id)
LEFT JOIN ttrss_user_entries AS u1 ON u1.ref_id = article_id
- WHERE ttrss_labels2.owner_uid = $owner_uid GROUP BY ttrss_labels2.id,
+ WHERE ttrss_labels2.owner_uid = $owner_uid AND u1.owner_uid = $owner_uid
+ GROUP BY ttrss_labels2.id,
ttrss_labels2.caption");
while ($line = db_fetch_assoc($result)) {