From 9e0fc633b5daeb857e773c0f53f50a7a9f574e7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 10 Mar 2022 12:28:51 +0100 Subject: [PATCH] Fix formatting in XoborExporter --- files/lib/system/exporter/XoborExporter.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/files/lib/system/exporter/XoborExporter.class.php b/files/lib/system/exporter/XoborExporter.class.php index f0bba92..c5ed05d 100644 --- a/files/lib/system/exporter/XoborExporter.class.php +++ b/files/lib/system/exporter/XoborExporter.class.php @@ -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); } } -- 2.20.1