From: Alexander Ebert Date: Tue, 15 Aug 2023 12:13:40 +0000 (+0200) Subject: Fix the export of users from vB 3.x X-Git-Tag: 6.0.0_Beta_2~2^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fd8c513d29dfdd7a2f4dcff634b587771b417bc;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix the export of users from vB 3.x --- diff --git a/files/lib/system/exporter/VB3or4xExporter.class.php b/files/lib/system/exporter/VB3or4xExporter.class.php index c5a4245..861c8db 100644 --- a/files/lib/system/exporter/VB3or4xExporter.class.php +++ b/files/lib/system/exporter/VB3or4xExporter.class.php @@ -523,12 +523,12 @@ class VB3or4xExporter extends AbstractExporter 'email' => StringUtil::decodeHTML($row['email']), 'registrationDate' => $row['joindate'], 'banned' => $row['liftdate'] !== null && $row['liftdate'] == 0 ? 1 : 0, - 'banReason' => StringUtil::decodeHTML($row['banReason']), + 'banReason' => StringUtil::decodeHTML($row['banReason'] ?? ''), 'activationCode' => $row['activationType'] !== null && $row['activationType'] == 0 && $row['emailchange'] == 0 ? UserRegistrationUtil::getActivationCode() : 0, // vB's codes are strings 'oldUsername' => '', // TODO: check whether this is the registration IP 'registrationIpAddress' => UserUtil::convertIPv4To6($row['ipaddress']), - 'signature' => self::fixBBCodes($row['signature']), + 'signature' => self::fixBBCodes($row['signature'] ?? ''), 'userTitle' => ($row['customtitle'] != 0) ? StringUtil::decodeHTML($row['usertitle']) : '', 'lastActivityTime' => $row['lastactivity'], ];