From: Alexander Ebert Date: Tue, 21 Jul 2015 13:06:14 +0000 (+0200) Subject: Ignore issues with already existing cronjob description X-Git-Tag: 2.1.6~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca9d8d2cc91a31a5aedc0debf303b0729b74382b;p=GitHub%2FWoltLab%2FWCF.git Ignore issues with already existing cronjob description --- diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php index ce3ca8842e..f80b0c2efa 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobEditor.class.php @@ -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) {