Merge pull request #9561 from nextcloud/techdebt/noid/cron.php

Fix code style
This commit is contained in:
Roeland Jago Douma 2018-05-23 18:27:33 +02:00 committed by GitHub
commit d42515a934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) {