From: Marcel Werk Date: Thu, 21 Mar 2019 16:31:35 +0000 (+0100) Subject: Add default value for packageID X-Git-Tag: 5.2.0_Alpha_1~195 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e76c1b2a01d4a92f405f5b033e6dbe828cfede86;p=GitHub%2FWoltLab%2FWCF.git Add default value for packageID See #2708 --- diff --git a/wcfsetup/install/files/lib/system/importer/PageImporter.class.php b/wcfsetup/install/files/lib/system/importer/PageImporter.class.php index 4c3bbf586b..3504686946 100644 --- a/wcfsetup/install/files/lib/system/importer/PageImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/PageImporter.class.php @@ -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)) {