getFeedCounters: pass parameter correctly to PDO

This commit is contained in:
Andrew Dolgov 2020-01-24 14:27:24 +03:00
parent 6080cca9ca
commit 2f6741e49a
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Counters {
WHERE f.id = ue.feed_id AND ue.owner_uid = :uid WHERE f.id = ue.feed_id AND ue.owner_uid = :uid
GROUP BY f.id"); GROUP BY f.id");
$sth->execute([$_SESSION['uid']]); $sth->execute(["uid" => $_SESSION['uid']]);
while ($line = $sth->fetch()) { while ($line = $sth->fetch()) {