summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg-T <[email protected]>2019-03-28 15:50:13 +0000
committerGreg-T <[email protected]>2019-03-28 15:50:13 +0000
commit2c2f74a104aa8e117d489658a5b38562287f156a (patch)
treebe9f10a66eeea5d7b539137113bf90cd62cd0438 /include
parent656475ec78b2139ce43f547968e1d73143bd5c26 (diff)
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)
Diffstat (limited to 'include')
-rwxr-xr-xinclude/functions.php3
1 files changed, 2 insertions, 1 deletions
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();