From 2c2f74a104aa8e117d489658a5b38562287f156a Mon Sep 17 00:00:00 2001 From: Greg-T Date: Thu, 28 Mar 2019 15:50:13 +0000 Subject: [PATCH] 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) --- include/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index d59e79126..3adeae924 100755 --- a/include/functions.php +++ b/include/functions.php @@ -2206,7 +2206,8 @@ FROM ttrss_tags, ttrss_user_entries, ttrss_entries WHERE post_int_id = int_id AND $interval_query AND ref_id = ttrss_entries.id AND tag_cache != '' LIMIT ?"); - $sth->execute([$limit]); + $sth->bindValue(1, $limit_part, PDO::PARAM_INT); + $sth->execute(); $ids = array();