From 7860c815235e6c1ae5d665fb7a83848f3fc70636 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 30 May 2017 12:10:10 +0200 Subject: Fix code style Signed-off-by: Joas Schilling --- cron.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron.php b/cron.php index aaa4419c1ce..b79c40d2a72 100644 --- a/cron.php +++ b/cron.php @@ -135,7 +135,7 @@ try { } else { // We call cron.php from some website - if ($appMode == 'cron') { + if ($appMode === 'cron') { // Cron is cron :-P OC_JSON::error(array('data' => array('message' => 'Backgroundjobs are using system cron!'))); } else { @@ -151,7 +151,7 @@ try { } // Log the successful cron execution - \OC::$server->getConfig()->setAppValue('core', 'lastcron', time()); + $config->setAppValue('core', 'lastcron', time()); exit(); } catch (Exception $ex) { -- cgit v1.2.3