aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-06 17:08:41 +0100
committerJoas Schilling <coding@schilljs.com>2019-02-22 08:25:41 +0100
commit0c77cd21f94dd9922e0e04ec4c7e99eff9376e07 (patch)
treea9c413768e4de0b393b44bd2d49f1a4cfeb7b782 /cron.php
parenta11ef5134cb4200399e74811bbf9d1100923efcd (diff)
downloadnextcloud-server-0c77cd21f94dd9922e0e04ec4c7e99eff9376e07.tar.gz
nextcloud-server-0c77cd21f94dd9922e0e04ec4c7e99eff9376e07.zip
Make sure maintenance mode is always casted to bool
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index b79c40d2a72..cdfa0fb367d 100644
--- a/cron.php
+++ b/cron.php
@@ -44,7 +44,7 @@ try {
\OC::$server->getLogger()->debug('Update required, skipping cron', ['app' => 'cron']);
exit;
}
- if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) {
+ if ((bool) \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
\OC::$server->getLogger()->debug('We are in maintenance mode, skipping cron', ['app' => 'cron']);
exit;
}