From: Tim Düsterhus Date: Mon, 22 Aug 2011 15:07:14 +0000 (+0200) Subject: Implemented dtdesign's suggestions X-Git-Tag: 2.0.0_Beta_1~1833^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b78fb2835f5aca15098fe1ad24a08745a5e1e9f8;p=GitHub%2FWoltLab%2FWCF.git Implemented dtdesign's suggestions --- diff --git a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php index c351702843..4692331d12 100644 --- a/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php +++ b/wcfsetup/install/files/lib/data/cronjob/CronjobAction.class.php @@ -1,6 +1,7 @@ execute(new Cronjob($cronjob->cronjobID)); } catch (\Exception $e) { - $success = false; - $error = (string) $e; + $error = $e->getMessage(); } - log\CronjobLogEditor::create(array( + CronjobLogEditor::create(array( 'cronjobID' => $cronjob->cronjobID, 'execTime' => TIME_NOW, - 'success' => (int) $success, + 'success' => (int) ($error != ''), 'error' => $error ));