From ca9d8d2cc91a31a5aedc0debf303b0729b74382b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 21 Jul 2015 15:06:14 +0200 Subject: [PATCH] Ignore issues with already existing cronjob description --- .../install/files/lib/data/cronjob/CronjobEditor.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.20.1