import_export: limit and offset don't play nice with generic PDO placeholders

This commit is contained in:
Andrew Dolgov 2018-05-28 16:49:39 +03:00
parent a369a6d946
commit 636164301f

View file

@ -151,9 +151,9 @@ class Import_Export extends Plugin implements IHandler {
(marked = true OR feed_id IS NULL) AND (marked = true OR feed_id IS NULL) AND
ref_id = ttrss_entries.id AND ref_id = ttrss_entries.id AND
ttrss_user_entries.owner_uid = ? 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']); $exportname = sha1($_SESSION['uid'] . $_SESSION['login']);