summaryrefslogtreecommitdiffstats
path: root/lib/Service/StatusService.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-11-20 20:52:54 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-03-25 18:47:38 +0100
commit2baa7a2b9136d4d4dc1e56dfc043cc71da3ee1df (patch)
treed8f970ce85442869ad9547f80f70153a31820563 /lib/Service/StatusService.php
parent8b519cd234b1293e03ef288617287be1a30cfc75 (diff)
Make PHPstan stricter
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Service/StatusService.php')
-rw-r--r--lib/Service/StatusService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Service/StatusService.php b/lib/Service/StatusService.php
index d33d99bad..a15f30c76 100644
--- a/lib/Service/StatusService.php
+++ b/lib/Service/StatusService.php
@@ -45,11 +45,11 @@ class StatusService
//Is NC cron enabled?
$cronMode = $this->settings->getAppValue('core', 'backgroundjobs_mode');
//Expect nextcloud cron
- $cronOff = !$this->settings->getAppValue(
+ $cronOff = !boolval($this->settings->getAppValue(
Application::NAME,
'useCronUpdates',
Application::DEFAULT_SETTINGS['useCronUpdates']
- );
+ ));
// check for cron modes which may lead to problems
return $cronMode === 'cron' || $cronOff;