Quick fix: forgotten PDO values (#2546)

From https://github.com/FreshRSS/FreshRSS/pull/2522
This commit is contained in:
Alexandre Alapetite
2019-09-29 23:11:35 +02:00
committed by GitHub
parent ef00513a81
commit 7ae4e9f159

View File

@@ -466,7 +466,7 @@ SQL;
. ' WHERE id=:id';
$stm = $this->pdo->prepare($sql);
$stm->bindParam(':id', $id_feed, PDO::PARAM_INT);
if (!($stm && $stm->execute($values))) {
if (!($stm && $stm->execute())) {
$info = $stm == null ? array(2 => 'syntax error') : $stm->errorInfo();
Minz_Log::error('SQL error markReadFeed cache: ' . $info[2]);
$this->pdo->rollBack();