Fix `deprecated` error
authorMarcel Werk <burntime@woltlab.com>
Mon, 4 Mar 2024 14:24:24 +0000 (15:24 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 4 Mar 2024 14:24:24 +0000 (15:24 +0100)
ref https://www.woltlab.com/community/thread/305102-importer-vbulletin-5-x/

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

index 3d5f9444c3d499272ea28aafe8b8d4c26b54a9b4..ea52d6db2e3295d16bb0185def24b07a15f6a294 100644 (file)
@@ -906,7 +906,7 @@ final class VB5xExporter extends AbstractExporter
                 'threadID' => $row['parentid'],
                 'userID' => $row['userid'],
                 'username' => $row['authorname'] ?: '',
-                'subject' => StringUtil::decodeHTML($row['title']),
+                'subject' => StringUtil::decodeHTML($row['title'] ?: ''),
                 'message' => self::fixBBCodes($row['rawtext']),
                 'time' => $row['created'],
                 'isDeleted' => $row['deleteuserid'] !== null ? 1 : 0,