From 2f6741e49ac27578f01c17386aec25316abfdb3d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Jan 2020 14:27:24 +0300 Subject: [PATCH] getFeedCounters: pass parameter correctly to PDO --- classes/counters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {