Fixed language import during setup
authorAlexander Ebert <ebert@woltlab.com>
Wed, 15 May 2013 16:35:21 +0000 (18:35 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 15 May 2013 16:35:21 +0000 (18:35 +0200)
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php

index 877ca5cd85e7a9b94d17db2df5792d2d38d0fc88..680756d3a42171e2227b543bcfebdb62489a3e4d 100644 (file)
@@ -226,7 +226,7 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
                                $repeat = count($parameters) / $step;
                                
                                $sql = "INSERT INTO             wcf".WCF_N."_language_item
-                                                               (languageID, languageItem, languageItemValue, languageCategoryID, packageID)
+                                                               (languageID, languageItem, languageItemValue, languageCategoryID". ($packageID ? ", packageID" : "") . ")
                                        VALUES                  ".substr(str_repeat('(?, ?, ?, ?'. ($packageID ? ', ?' : '') .'), ', $repeat), 0, -2)."
                                        ON DUPLICATE KEY
                                        UPDATE                  languageItemValue = VALUES(languageItemValue),