From af49e0fc89ba45f995c5e54be1acfbb3fd71c95c Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 27 Nov 2023 14:50:14 +0100 Subject: [PATCH] Fix issue when importing users (WBB4+) Fix an error if no groups or languages were assigned to a user. --- files/lib/system/exporter/WBB4xExporter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' => [], ]; -- 2.20.1