summaryrefslogtreecommitdiff
path: root/classes/counters.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-01-24 14:27:24 +0300
committerAndrew Dolgov <[email protected]>2020-01-24 14:27:24 +0300
commit2f6741e49ac27578f01c17386aec25316abfdb3d (patch)
treebbf13540c242c90272b25029fa2c13a8bbd66394 /classes/counters.php
parent6080cca9ca1de60a5d4a1ef06d4873eca07d9ef2 (diff)
getFeedCounters: pass parameter correctly to PDO
Diffstat (limited to 'classes/counters.php')
-rw-r--r--classes/counters.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/counters.php b/classes/counters.php
index 29a7812b6..a0e39ea52 100644
--- a/classes/counters.php
+++ b/classes/counters.php
@@ -85,7 +85,7 @@ class Counters {
WHERE f.id = ue.feed_id AND ue.owner_uid = :uid
GROUP BY f.id");
- $sth->execute([$_SESSION['uid']]);
+ $sth->execute(["uid" => $_SESSION['uid']]);
while ($line = $sth->fetch()) {