diff options
author | Andrew Dolgov <[email protected]> | 2020-01-24 14:27:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2020-01-24 14:27:24 +0300 |
commit | 2f6741e49ac27578f01c17386aec25316abfdb3d (patch) | |
tree | bbf13540c242c90272b25029fa2c13a8bbd66394 | |
parent | 6080cca9ca1de60a5d4a1ef06d4873eca07d9ef2 (diff) |
getFeedCounters: pass parameter correctly to PDO
-rw-r--r-- | classes/counters.php | 2 |
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()) { |