From: Alexander Ebert Date: Tue, 28 May 2024 12:22:51 +0000 (+0200) Subject: Fix a potential NULL value for usernames X-Git-Tag: 6.0.14~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2762fb61dc66b06e3557b6617a306f5cbbdb3cce;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.exporter.git Fix a potential NULL value for usernames --- diff --git a/files/lib/system/exporter/PhpBB31xExporter.class.php b/files/lib/system/exporter/PhpBB31xExporter.class.php index df2b033..3d2acc3 100644 --- a/files/lib/system/exporter/PhpBB31xExporter.class.php +++ b/files/lib/system/exporter/PhpBB31xExporter.class.php @@ -1162,7 +1162,7 @@ final class PhpBB31xExporter extends AbstractExporter 'topic' => StringUtil::decodeHTML($row['topic_title']), 'time' => $row['topic_time'], 'userID' => $row['topic_poster'], - 'username' => $row['topic_first_poster_name'], + 'username' => $row['topic_first_poster_name'] ?: '', 'views' => $row['topic_views'], 'isAnnouncement' => ($row['topic_type'] == self::TOPIC_TYPE_ANNOUCEMENT || $row['topic_type'] == self::TOPIC_TYPE_GLOBAL) ? 1 : 0, 'isSticky' => $row['topic_type'] == self::TOPIC_TYPE_STICKY ? 1 : 0,