Browse Source

Fix code style

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v14.0.0beta1
Joas Schilling 7 years ago
parent
commit
7860c81523
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      cron.php

+ 2
- 2
cron.php View File



} 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 {
} }


// 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…
Cancel
Save