diff options
author | Joas Schilling <coding@schilljs.com> | 2019-02-06 17:08:41 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-02-22 08:25:41 +0100 |
commit | 0c77cd21f94dd9922e0e04ec4c7e99eff9376e07 (patch) | |
tree | a9c413768e4de0b393b44bd2d49f1a4cfeb7b782 /lib/private/Route | |
parent | a11ef5134cb4200399e74811bbf9d1100923efcd (diff) | |
download | nextcloud-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 'lib/private/Route')
-rw-r--r-- | lib/private/Route/Router.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index b44b3f7c2ce..1839b356424 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -260,7 +260,7 @@ class Router implements IRouter { $this->loadRoutes($app); } else if (substr($url, 0, 6) === '/core/' or substr($url, 0, 10) === '/settings/') { \OC::$REQUESTEDAPP = $url; - if (!\OC::$server->getConfig()->getSystemValue('maintenance', false) && !Util::needUpgrade()) { + if (!\OC::$server->getConfig()->getSystemValueBool('maintenance') && !Util::needUpgrade()) { \OC_App::loadApps(); } $this->loadRoutes('core'); |