Commit 4178dc85 authored by fox's avatar fox Committed by Gogs

Merge branch 'improvement/digest-pdo-params' of immanuelfodor/tt-rss into master

parents 2395dc3b 09be7cdd
...@@ -132,12 +132,14 @@ class Digest ...@@ -132,12 +132,14 @@ class Digest
ref_id = ttrss_entries.id AND feed_id = ttrss_feeds.id ref_id = ttrss_entries.id AND feed_id = ttrss_feeds.id
AND include_in_digest = true AND include_in_digest = true
AND $interval_qpart AND $interval_qpart
AND ttrss_user_entries.owner_uid = ? AND ttrss_user_entries.owner_uid = :user_id
AND unread = true AND unread = true
AND score >= 0 AND score >= 0
ORDER BY ttrss_feed_categories.title, ttrss_feeds.title, score DESC, date_updated DESC ORDER BY ttrss_feed_categories.title, ttrss_feeds.title, score DESC, date_updated DESC
LIMIT ?"); LIMIT :limit");
$sth->execute([$user_id, $limit]); $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; $headlines_count = 0;
$headlines = array(); $headlines = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment