prepare_headlines_digest: do not use PDO constants by reference

This commit is contained in:
Andrew Dolgov 2018-12-21 08:26:03 +03:00
parent 053c3efc8c
commit 7867f3efa4
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ class Digest
AND score >= 0
ORDER BY ttrss_feed_categories.title, ttrss_feeds.title, score DESC, date_updated DESC
LIMIT :limit");
$sth->bindParam(':user_id', intval($user_id, 10), \PDO::PARAM_INT);
$sth->bindParam(':limit', intval($limit, 10), \PDO::PARAM_INT);
$sth->bindParam(':user_id', intval($user_id, 10), PDO::PARAM_INT);
$sth->bindParam(':limit', intval($limit, 10), PDO::PARAM_INT);
$sth->execute();
$headlines_count = 0;