Add default value for packageID
authorMarcel Werk <burntime@woltlab.com>
Thu, 21 Mar 2019 16:31:35 +0000 (17:31 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 21 Mar 2019 16:31:35 +0000 (17:31 +0100)
See #2708

wcfsetup/install/files/lib/system/importer/PageImporter.class.php

index 4c3bbf586b6778d3e997abbee02f92e79d5a7537..350468694602a3ce9677ac4b0bad2e0b64a32ea2 100644 (file)
@@ -49,6 +49,9 @@ class PageImporter extends AbstractImporter {
                if (count($contents) > 1) {
                        $data['isMultilingual'] = 1;
                }
+               if (empty($data['packageID'])) {
+                       $data['packageID'] = 1;
+               }
                
                // check old id
                if (is_numeric($oldID)) {