Fixed updating of style description during style update
authorAlexander Ebert <ebert@woltlab.com>
Mon, 24 Jun 2013 19:24:42 +0000 (21:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 24 Jun 2013 19:24:42 +0000 (21:24 +0200)
wcfsetup/install/files/lib/data/style/StyleEditor.class.php

index 9b09ae587d35c7956826b9a2efe9415ef93ca956..eca37ce980401c34a624403a69a657e2447913ee 100644 (file)
@@ -493,7 +493,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
         */
        protected static function saveLocalizedDescriptions(StyleEditor $styleEditor, array $descriptions) {
                // localize package information
-               $sql = "INSERT INTO     wcf".WCF_N."_language_item
+               $sql = "REPLACE INTO    wcf".WCF_N."_language_item
                                        (languageID, languageItem, languageItemValue, languageCategoryID, packageID)
                        VALUES          (?, ?, ?, ?, ?)";
                $statement = WCF::getDB()->prepareStatement($sql);