PDO error in cleanup_tags repaired

Changes :
- add PDO::PARAM_INT to a value in a PDO query
- switch limit to limit_part to respect semantic here (cleanup by packages)
This commit is contained in:
Greg-T 2019-03-28 15:50:13 +00:00
parent 656475ec78
commit 2c2f74a104
1 changed files with 2 additions and 1 deletions

View File

@ -2206,7 +2206,8 @@
FROM ttrss_tags, ttrss_user_entries, ttrss_entries FROM ttrss_tags, ttrss_user_entries, ttrss_entries
WHERE post_int_id = int_id AND $interval_query AND WHERE post_int_id = int_id AND $interval_query AND
ref_id = ttrss_entries.id AND tag_cache != '' LIMIT ?"); ref_id = ttrss_entries.id AND tag_cache != '' LIMIT ?");
$sth->execute([$limit]); $sth->bindValue(1, $limit_part, PDO::PARAM_INT);
$sth->execute();
$ids = array(); $ids = array();