From 9e4d9ebbcfac47adf977c48bcce5efb2c9373d77 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 6 Aug 2013 13:05:48 +0200 Subject: [PATCH] Fixed import issue --- .../importer/AbstractPollOptionVoteImporter.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'])); -- 2.20.1