From: Alexander Ebert Date: Tue, 24 Sep 2013 22:30:29 +0000 (+0200) Subject: Fixed updating of language items X-Git-Tag: 2.0.0_Beta_10~26^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=852a4fc8f26821552a834005ba8e39529d669966;p=GitHub%2FWoltLab%2FWCF.git Fixed updating of language items --- diff --git a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php index a4e2436ab1..4ce2bd352a 100644 --- a/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php +++ b/wcfsetup/install/files/lib/data/language/LanguageEditor.class.php @@ -234,7 +234,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje VALUES ".substr(str_repeat('(?, ?, ?, ?'. ($packageID ? ', ?' : '') .'), ', $repeat), 0, -2); if ($updateExistingItems) { - " ON DUPLICATE KEY + $sql .= " ON DUPLICATE KEY UPDATE languageItemValue = IF(languageItemOriginIsSystem = 0, languageItemValue, VALUES(languageItemValue)), languageCategoryID = VALUES(languageCategoryID), languageUseCustomValue = 0";