From 8059dca302d157268c419534d47b1b413200debf Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 28 Jan 2014 14:21:40 +0100 Subject: [PATCH] Fixed duplicate key issues --- .../files/lib/system/search/SearchIndexManager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1