Fix `deprecated` error (vb5)
authorMarcel Werk <burntime@woltlab.com>
Tue, 5 Mar 2024 11:42:30 +0000 (12:42 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 5 Mar 2024 11:42:30 +0000 (12:42 +0100)
ref https://www.woltlab.com/community/thread/305102-importer-vbulletin-5-x/?postID=1959845#post1959845

files/lib/system/exporter/VB5xExporter.class.php

index ea52d6db2e3295d16bb0185def24b07a15f6a294..a51df6881c5e4f8cac6ebf0379b4fde92b9da315 100644 (file)
@@ -386,7 +386,7 @@ final class VB5xExporter extends AbstractExporter
                 'activationCode' => $row['activationType'] !== null && $row['activationType'] == 0 && $row['emailchange'] == 0 ? UserRegistrationUtil::getActivationCode() : 0, // vB's codes are strings
                 'oldUsername' => '',
                 'registrationIpAddress' => UserUtil::convertIPv4To6($row['ipaddress']), // TODO: check whether this is the registration IP
-                'signature' => self::fixBBCodes($row['signature']),
+                'signature' => self::fixBBCodes($row['signature'] ?: ''),
                 'userTitle' => ($row['customtitle'] != 0) ? $row['usertitle'] : '',
                 'lastActivityTime' => $row['lastactivity'],
             ];