WBB 4.x: Handle NULL category description
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Apr 2023 15:07:05 +0000 (17:07 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 3 Apr 2023 15:07:05 +0000 (17:07 +0200)
Fixes #75

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

index c5ae1ff7dbee8b070a150af6ec1f16ee50f59ef0..43847d2b0ab6c1914b01c5020cf98032c5607357 100644 (file)
@@ -4250,6 +4250,8 @@ class WBB4xExporter extends AbstractExporter
         ]);
         $categories = $i18nValues = [];
         while ($row = $statement->fetchArray()) {
+            $row['description'] = $row['description'] ?? '';
+
             $categories[$row['categoryID']] = [
                 'title' => $row['title'],
                 'description' => $row['description'],