Merge pull request #9561 from nextcloud/techdebt/noid/cron.php
Fix code style
This commit is contained in:
commit
d42515a934
4
cron.php
4
cron.php
|
@ -135,7 +135,7 @@ try {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// We call cron.php from some website
|
// We call cron.php from some website
|
||||||
if ($appMode == 'cron') {
|
if ($appMode === 'cron') {
|
||||||
// Cron is cron :-P
|
// Cron is cron :-P
|
||||||
OC_JSON::error(array('data' => array('message' => 'Backgroundjobs are using system cron!')));
|
OC_JSON::error(array('data' => array('message' => 'Backgroundjobs are using system cron!')));
|
||||||
} else {
|
} else {
|
||||||
|
@ -151,7 +151,7 @@ try {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log the successful cron execution
|
// Log the successful cron execution
|
||||||
\OC::$server->getConfig()->setAppValue('core', 'lastcron', time());
|
$config->setAppValue('core', 'lastcron', time());
|
||||||
exit();
|
exit();
|
||||||
|
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
|
|
Loading…
Reference in New Issue