Fix formatting in XoborExporter
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 10 Mar 2022 11:28:51 +0000 (12:28 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 10 Mar 2022 14:21:35 +0000 (15:21 +0100)
files/lib/system/exporter/XoborExporter.class.php

index f0bba92807f7a983f0ba7023d9a01fc18e98c63a..c5ed05d341c7aeb5e443cc9ad99001bf8a7dad39 100644 (file)
@@ -305,7 +305,7 @@ class XoborExporter extends AbstractExporter
         $statement = $this->database->prepareStatement($sql);
         $statement->execute([$offset + 1, $offset + $limit]);
         while ($row = $statement->fetchArray()) {
-            ImportHandler::getInstance()->getImporter('com.woltlab.wbb.post')->import($row['id'], [
+            $data = [
                 'threadID' => $row['thread'],
                 'userID' => $row['userid'],
                 'username' => StringUtil::decodeHTML($row['username']),
@@ -316,7 +316,11 @@ class XoborExporter extends AbstractExporter
                 'enableHtml' => 1,
                 'isClosed' => 1,
                 'ipAddress' => UserUtil::convertIPv4To6($row['useraddr']),
-            ]);
+            ];
+
+            ImportHandler::getInstance()
+                ->getImporter('com.woltlab.wbb.post')
+                ->import($row['id'], $data);
         }
     }