Ignore issues with already existing cronjob description
authorAlexander Ebert <ebert@woltlab.com>
Tue, 21 Jul 2015 13:06:14 +0000 (15:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 21 Jul 2015 13:06:14 +0000 (15:06 +0200)
wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php

index ce3ca8842e215fcfdd16291d168b242e964c1a1b..f80b0c2efaef32634add5ff18cb1b7b75713c02c 100644 (file)
@@ -78,7 +78,8 @@ class CronjobEditor extends DatabaseObjectEditor implements IEditableCachedObjec
                        
                        $sql = "INSERT INTO     wcf".WCF_N."_language_item
                                                (languageID, languageItem, languageItemValue, languageCategoryID, packageID)
-                               VALUES          (?, ?, ?, ?, ?)";
+                               VALUES          (?, ?, ?, ?, ?)
+                               ON DUPLICATE KEY UPDATE languageItemValue = VALUES(languageItemValue)";
                        $statement = WCF::getDB()->prepareStatement($sql);
                        
                        foreach ($languages as $language) {