summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-01 17:40:53 +0300
committerAndrew Dolgov <[email protected]>2017-12-01 17:40:53 +0300
commitc9d5c26041087cc3cf23ee4deda74055d5013ba4 (patch)
treef6a839a997db73cf74805a891f5c6f44eb8510e2 /include/functions.php
parent2c57df75ff04d6b170de6b6fc0509e5ddc05208e (diff)
auth/base: PDO
functions: fix small pdo-related bug
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions.php b/include/functions.php
index 377d49647..e7d74df04 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -266,8 +266,8 @@
marked = false AND
feed_id = ? AND
$query_limit
- ttrss_entries.date_updated < NOW() - INTERVAL ?");
- $sth->execute([$feed_id, "$purge_interval days"]);
+ ttrss_entries.date_updated < NOW() - INTERVAL ? days");
+ $sth->execute([$feed_id, $purge_interval]);
} else {
$sth = $pdo->prepare("DELETE FROM ttrss_user_entries