From 00dbde68fbaf7da68ccf191c33f2de88d3603aa8 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 2 Dec 2021 23:30:13 +0100 Subject: Fix some PHPstan errors (#4019) Fix some wrong variables found by https://github.com/FreshRSS/FreshRSS/issues/4016 --- app/Models/FeedDAO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/FeedDAO.php') diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php index 0d65e171d..150bbe921 100644 --- a/app/Models/FeedDAO.php +++ b/app/Models/FeedDAO.php @@ -460,7 +460,7 @@ SQL; . 'SET `cache_nbUnreads`=`cache_nbUnreads`-' . $affected . ' WHERE id=:id'; $stm = $this->pdo->prepare($sql); - $stm->bindParam(':id', $id_feed, PDO::PARAM_INT); + $stm->bindParam(':id', $id, PDO::PARAM_INT); if (!($stm && $stm->execute())) { $info = $stm == null ? $this->pdo->errorInfo() : $stm->errorInfo(); Minz_Log::error('SQL error keepMaxUnread cache: ' . json_encode($info)); -- cgit v1.2.3