From: Marcel Werk Date: Tue, 6 Aug 2013 11:05:48 +0000 (+0200) Subject: Fixed import issue X-Git-Tag: 2.0.0_Beta_7~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9e4d9ebbcfac47adf977c48bcce5efb2c9373d77;p=GitHub%2FWoltLab%2FWCF.git Fixed import issue --- diff --git a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php index c01c3353f4..abde6401a5 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php @@ -38,9 +38,9 @@ class AbstractPollOptionVoteImporter implements IImporter { $data['optionID'] = ImportHandler::getInstance()->getNewID($this->objectTypeName, $data['optionID']); if (!$data['optionID']) return 0; - $sql = "INSERT INTO wcf".WCF_N."_poll_option_vote - (pollID, optionID, userID) - VALUES (?, ?, ?)"; + $sql = "INSERT IGNORE INTO wcf".WCF_N."_poll_option_vote + (pollID, optionID, userID) + VALUES (?, ?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array($data['pollID'], $data['optionID'], $data['userID']));