From: Marcel Werk Date: Thu, 4 Jul 2024 09:32:18 +0000 (+0200) Subject: Fix potential NULL values X-Git-Tag: 6.1.0_Beta_1~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f42634a973ed59c3f0d85db7b0c4d7166eebf819;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix potential NULL values --- diff --git a/files/lib/system/exporter/Kunena3xExporter.class.php b/files/lib/system/exporter/Kunena3xExporter.class.php index 6e3c77f..d35048b 100644 --- a/files/lib/system/exporter/Kunena3xExporter.class.php +++ b/files/lib/system/exporter/Kunena3xExporter.class.php @@ -232,17 +232,17 @@ final class Kunena3xExporter extends AbstractExporter 'banned' => $row['banned'] ? 1 : 0, 'registrationDate' => @\strtotime($row['registerDate']), 'lastActivityTime' => @\strtotime($row['lastvisitDate']), - 'signature' => self::fixBBCodes($row['signature']), + 'signature' => self::fixBBCodes($row['signature'] ?: ''), ]; // get user options $options = [ - 'location' => $row['location'], - 'birthday' => $row['birthdate'], - 'icq' => $row['icq'], - 'skype' => $row['skype'], - 'homepage' => $row['websiteurl'], - 'gender' => $row['gender'], + 'location' => $row['location'] ?: '', + 'birthday' => $row['birthdate'] ?: '', + 'icq' => $row['icq'] ?: '', + 'skype' => $row['skype'] ?: '', + 'homepage' => $row['websiteurl'] ?: '', + 'gender' => $row['gender'] ?: '', ]; $additionalData = [