diff options
| author | 2021-12-02 23:30:13 +0100 | |
|---|---|---|
| committer | 2021-12-02 23:30:13 +0100 | |
| commit | 00dbde68fbaf7da68ccf191c33f2de88d3603aa8 (patch) | |
| tree | 26b182e58df9adc8ff0210bda5bb4b03d28571a1 /app/Models/FeedDAO.php | |
| parent | a2ab9cf83aaead96497a70a1430ce0424c0d8316 (diff) | |
Fix some PHPstan errors (#4019)
Fix some wrong variables found by https://github.com/FreshRSS/FreshRSS/issues/4016
Diffstat (limited to 'app/Models/FeedDAO.php')
| -rw-r--r-- | app/Models/FeedDAO.php | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |
