From: Marcel Werk Date: Tue, 28 Jan 2014 13:21:40 +0000 (+0100) Subject: Fixed duplicate key issues X-Git-Tag: 2.0.2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8059dca302d157268c419534d47b1b413200debf;p=GitHub%2FWoltLab%2FWCF.git Fixed duplicate key issues --- diff --git a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php index 461f72ebc0..03a723b152 100644 --- a/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php +++ b/wcfsetup/install/files/lib/system/search/SearchIndexManager.class.php @@ -61,7 +61,7 @@ class SearchIndexManager extends SingletonFactory { if ($languageID === null) $languageID = 0; // save new entry - $sql = "INSERT INTO wcf".WCF_N."_search_index + $sql = "REPLACE INTO wcf".WCF_N."_search_index (objectTypeID, objectID, subject, message, time, userID, username, languageID, metaData) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)"; $statement = WCF::getDB()->prepareStatement($sql);