vB 3/4: Handle a NULL board description
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 08:02:34 +0000 (10:02 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 5 Sep 2023 08:02:34 +0000 (10:02 +0200)
files/lib/system/exporter/VB3or4xExporter.class.php

index d7aa981d38609bdc0d1a9b019751eb0c0f335494..ad2ebc177e36205690af86d91617b5750e89fef8 100644 (file)
@@ -1291,7 +1291,7 @@ class VB3or4xExporter extends AbstractExporter
                 'position' => $board['displayorder'],
                 'boardType' => $boardType,
                 'title' => StringUtil::decodeHTML($board['title_clean']),
-                'description' => StringUtil::decodeHTML($board['description_clean']),
+                'description' => StringUtil::decodeHTML($board['description_clean'] ?? ''),
                 'descriptionUseHtml' => 0,
                 'externalURL' => $board['link'],
                 'countUserPosts' => $board['options'] & self::FORUMOPTIONS_COUNTPOSTS ? 1 : 0,