From c93ee9768b6b975c8343e865dadd0d5b4c7bc06a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 4 Mar 2016 18:21:38 +0100 Subject: [PATCH] Cheap work-around for some rare import issues --- .../system/importer/AbstractACLImporter.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php index fbab649c3f..2a92f92a64 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractACLImporter.class.php @@ -60,9 +60,9 @@ class AbstractACLImporter extends AbstractImporter { $data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user.group', $data['groupID']); if (!$data['groupID']) return 0; - $sql = "INSERT INTO wcf".WCF_N."_acl_option_to_group - (optionID, objectID, groupID, optionValue) - VALUES (?, ?, ?, ?)"; + $sql = "INSERT IGNORE INTO wcf".WCF_N."_acl_option_to_group + (optionID, objectID, groupID, optionValue) + VALUES (?, ?, ?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($data['optionID'], $data['objectID'], $data['groupID'], $data['optionValue'])); @@ -72,9 +72,9 @@ class AbstractACLImporter extends AbstractImporter { $data['userID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.user', $data['userID']); if (!$data['userID']) return 0; - $sql = "INSERT INTO wcf".WCF_N."_acl_option_to_user - (optionID, objectID, userID, optionValue) - VALUES (?, ?, ?, ?)"; + $sql = "INSERT IGNORE INTO wcf".WCF_N."_acl_option_to_user + (optionID, objectID, userID, optionValue) + VALUES (?, ?, ?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($data['optionID'], $data['objectID'], $data['userID'], $data['optionValue'])); -- 2.20.1