From e76c1b2a01d4a92f405f5b033e6dbe828cfede86 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 21 Mar 2019 17:31:35 +0100 Subject: [PATCH] Add default value for packageID See #2708 --- .../install/files/lib/system/importer/PageImporter.class.php | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.20.1