From c5d65d18f1e48c8466ca0af079fbc879f160bb73 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 29 Dec 2012 09:08:05 +0100 Subject: [PATCH] =?utf8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../install/files/lib/data/cronjob/CronjobAction.class.php | 4 +++- .../lib/data/language/server/LanguageServerAction.class.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php index 5094a8012c..d66a04332a 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php @@ -88,7 +88,9 @@ class CronjobAction extends AbstractDatabaseObjectAction implements IToggleActio */ public function toggle() { foreach ($this->objects as $cronjob) { - $cronjob->update(array('isDisabled' => 1 - $cronjob->isDisabled)); + $cronjob->update(array( + 'isDisabled' => $cronjob->isDisabled ? 0 : 1 + )); } } diff --git a/wcfsetup/install/files/lib/data/language/server/LanguageServerAction.class.php b/wcfsetup/install/files/lib/data/language/server/LanguageServerAction.class.php index b4cbc09abc..c7557f940d 100644 --- a/wcfsetup/install/files/lib/data/language/server/LanguageServerAction.class.php +++ b/wcfsetup/install/files/lib/data/language/server/LanguageServerAction.class.php @@ -40,7 +40,7 @@ class LanguageServerAction extends AbstractDatabaseObjectAction implements ITogg public function toggle() { foreach ($this->objects as $serverEditor) { $serverEditor->update(array( - 'isDisabled' => 1 - $serverEditor->isDisabled + 'isDisabled' => $serverEditor->isDisabled ? 0 : 1 )); } } -- 2.20.1