From 351e776e5fba3ebcb992c3ff82ae2fba08293796 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 6 Jan 2021 13:45:29 +0100 Subject: [PATCH] fixed double import of file contents --- files/lib/system/exporter/WBB4xExporter.class.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index 8751664..77b1fd1 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -2401,11 +2401,13 @@ class WBB4xExporter extends AbstractExporter { $statement = $this->database->prepareStatement($sql); $statement->execute($conditionBuilder->getParameters()); while ($row = $statement->fetchArray()) { - $contents[$row['languageCode'] ?: ''] = [ - 'subject' => $row['subject'], - 'teaser' => $row['teaser'], - 'message' => $row['message'], - 'tags' => $tags[$row['fileID']] ?? [], + $contents = [ + ($row['languageCode'] ?: '') => [ + 'subject' => $row['subject'], + 'teaser' => $row['teaser'], + 'message' => $row['message'], + 'tags' => $tags[$row['fileID']] ?? [], + ] ]; $this->exportFilebaseFilesHelper($row, $contents, $categories[$row['fileID']] ?? [$row['categoryID']]); -- 2.20.1