Remove the query LIMIT and OFFSET from the attachment export
authorAlexander Ebert <ebert@woltlab.com>
Mon, 24 Oct 2022 15:17:00 +0000 (17:17 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 24 Oct 2022 15:17:00 +0000 (17:17 +0200)
files/lib/system/exporter/IPB3xExporter.class.php

index a531c353a0de55ff1ce9ad7212b62573031488b1..f6c81aaa7504b48737f518bac591aff36f5a9762 100644 (file)
@@ -1193,7 +1193,7 @@ class IPB3xExporter extends AbstractExporter
                 WHERE       attach_rel_module = ?
                         AND attach_rel_id > ?
                         AND attach_id BETWEEN ? AND ?";
-        $statement = $this->database->prepareStatement($sql, $limit, $offset);
+        $statement = $this->database->prepareStatement($sql);
         $statement->execute([
             $type,
             0,