From: Marcel Werk Date: Mon, 27 Nov 2023 13:50:14 +0000 (+0100) Subject: Fix issue when importing users (WBB4+) X-Git-Tag: 6.0.4~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af49e0fc89ba45f995c5e54be1acfbb3fd71c95c;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix issue when importing users (WBB4+) Fix an error if no groups or languages were assigned to a user. --- diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index 81101f2..3d6817d 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -645,8 +645,8 @@ final class WBB4xExporter extends AbstractExporter 'authData' => $row['authData'], ]; $additionalData = [ - 'groupIDs' => \explode(',', $row['groupIDs']), - 'languages' => \explode(',', $row['languageCodes']), + 'groupIDs' => $row['groupIDs'] ? \explode(',', $row['groupIDs']) : [], + 'languages' => $row['languageCodes'] ? \explode(',', $row['languageCodes']) : [], 'options' => [], ];