Fixed import issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 6 Aug 2013 11:05:48 +0000 (13:05 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 6 Aug 2013 11:05:48 +0000 (13:05 +0200)
wcfsetup/install/files/lib/system/importer/AbstractPollOptionVoteImporter.class.php

index c01c3353f43c5e35e8be0f5dd5793e729988fb8c..abde6401a56032cbd7ea02f1f50b94ff7390076d 100644 (file)
@@ -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']));