diff options
Diffstat (limited to 'lib/private/GlobalScale/Config.php')
-rw-r--r-- | lib/private/GlobalScale/Config.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/GlobalScale/Config.php b/lib/private/GlobalScale/Config.php index a5449ade691..66abbfc15db 100644 --- a/lib/private/GlobalScale/Config.php +++ b/lib/private/GlobalScale/Config.php @@ -44,8 +44,7 @@ class Config implements \OCP\GlobalScale\IConfig { * @return bool */ public function isGlobalScaleEnabled() { - $enabled = $this->config->getSystemValue('gs.enabled', false); - return $enabled !== false; + return $this->config->getSystemValueBool('gs.enabled', false); } /** @@ -61,7 +60,7 @@ class Config implements \OCP\GlobalScale\IConfig { return false; } - $enabled = $this->config->getSystemValue('gs.federation', 'internal'); + $enabled = $this->config->getSystemValueString('gs.federation', 'internal'); return $enabled === 'internal'; } |