From 2762fb61dc66b06e3557b6617a306f5cbbdb3cce Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 28 May 2024 14:22:51 +0200 Subject: [PATCH] Fix a potential NULL value for usernames --- files/lib/system/exporter/PhpBB31xExporter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1