diff options
Diffstat (limited to 'app/Models')
| -rw-r--r-- | app/Models/FeedDAO.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php index 11db5e3d4..6f675ead0 100644 --- a/app/Models/FeedDAO.php +++ b/app/Models/FeedDAO.php @@ -258,12 +258,10 @@ class FreshRSS_FeedDAO extends Minz_ModelPdo implements FreshRSS_Searchable { } public function searchById($id) { - $sql = 'SELECT * FROM `_feed` WHERE id=?'; + $sql = 'SELECT * FROM `_feed` WHERE id=:id'; $stm = $this->pdo->prepare($sql); - - $values = array($id); - - $stm->execute($values); + $stm->bindParam(':id', $id, PDO::PARAM_INT); + $stm->execute(); $res = $stm->fetchAll(PDO::FETCH_ASSOC); $feed = self::daoToFeed($res); |
