From 8c8596be29d47cfabaa401cef58ba23d85d11e08 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 8 Nov 2013 22:42:48 +0100 Subject: [PATCH] Fixed import issue Closes #1550 --- .../install/files/lib/system/importer/UserImporter.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php index be5c534a34..0ed9163d1b 100644 --- a/wcfsetup/install/files/lib/system/importer/UserImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserImporter.class.php @@ -139,7 +139,10 @@ class UserImporter extends AbstractImporter { } } - $groupIDs = array_merge($groupIDs, UserGroup::getGroupIDsByType(array(UserGroup::EVERYONE, UserGroup::USERS))); + if (!$user->activationCode) $defaultGroupIDs = UserGroup::getGroupIDsByType(array(UserGroup::EVERYONE, UserGroup::USERS)); + else $defaultGroupIDs = UserGroup::getGroupIDsByType(array(UserGroup::EVERYONE, UserGroup::GUESTS)); + + $groupIDs = array_merge($groupIDs, $defaultGroupIDs); $sql = "INSERT IGNORE INTO wcf".WCF_N."_user_to_group (userID, groupID) VALUES (?, ?)"; -- 2.20.1