Fixed updating of language items
authorAlexander Ebert <ebert@woltlab.com>
Tue, 24 Sep 2013 22:30:29 +0000 (00:30 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 24 Sep 2013 22:30:29 +0000 (00:30 +0200)
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php

index a4e2436ab1847b5a4a93ac4d6e4cbb0b5de44b05..4ce2bd352a55fdf8da3064661e6d301005bb96b5 100644 (file)
@@ -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";