From dfb3eef64159925162165ab6cdc230a7a95172fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 3 Apr 2023 17:07:05 +0200 Subject: [PATCH] WBB 4.x: Handle NULL category description Fixes #75 --- files/lib/system/exporter/WBB4xExporter.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/lib/system/exporter/WBB4xExporter.class.php b/files/lib/system/exporter/WBB4xExporter.class.php index c5ae1ff..43847d2 100644 --- a/files/lib/system/exporter/WBB4xExporter.class.php +++ b/files/lib/system/exporter/WBB4xExporter.class.php @@ -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'], -- 2.20.1