Fixed media import from WoltLab Suite 3.0
authorMarcel Werk <burntime@woltlab.com>
Thu, 5 Mar 2020 15:25:23 +0000 (16:25 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 5 Mar 2020 15:26:37 +0000 (16:26 +0100)
files/lib/system/exporter/WBB4xExporter.class.php

index e39102d845009b44a177e3507f7b851b7e379454..1eac448b16c4f3ad88b4b806ac7f184a0c308f26 100644 (file)
@@ -2768,7 +2768,7 @@ class WBB4xExporter extends AbstractExporter {
                        }
                        
                        ImportHandler::getInstance()->getImporter('com.woltlab.wcf.media')->import($row['mediaID'], [
-                               'categoryID' => $row['categoryID'],
+                               'categoryID' => (!empty($row['categoryID']) ? $row['categoryID'] : null),
                                'filename' => $row['filename'],
                                'filesize' => $row['filesize'],
                                'fileType' => $row['fileType'],