summaryrefslogtreecommitdiff
path: root/plugins/import_export
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-05-28 16:49:39 +0300
committerAndrew Dolgov <[email protected]>2018-05-28 16:49:39 +0300
commit636164301fa425a40992bc05a70e7cd8e8946163 (patch)
tree256c1b6cb1a5c45a0211054fc8cdfba86e043738 /plugins/import_export
parenta369a6d946a921b08ad15eeedbbb69adabb82311 (diff)
import_export: limit and offset don't play nice with generic PDO placeholders
Diffstat (limited to 'plugins/import_export')
-rwxr-xr-xplugins/import_export/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/import_export/init.php b/plugins/import_export/init.php
index 31e7dd0e2..a3413f307 100755
--- a/plugins/import_export/init.php
+++ b/plugins/import_export/init.php
@@ -151,9 +151,9 @@ class Import_Export extends Plugin implements IHandler {
(marked = true OR feed_id IS NULL) AND
ref_id = ttrss_entries.id AND
ttrss_user_entries.owner_uid = ?
- ORDER BY ttrss_entries.id LIMIT ? OFFSET ?");
+ ORDER BY ttrss_entries.id LIMIT $limit OFFSET $offset");
- $sth->execute([$_SESSION['uid'], $limit, $offset]);
+ $sth->execute([$_SESSION['uid']]);
$exportname = sha1($_SESSION['uid'] . $_SESSION['login']);