From: Tim Düsterhus Date: Thu, 10 Mar 2022 11:28:51 +0000 (+0100) Subject: Fix formatting in XoborExporter X-Git-Tag: 5.4.15~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e0fc633b5daeb857e773c0f53f50a7a9f574e7e;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix formatting in XoborExporter --- 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); } }