From 0c77cd21f94dd9922e0e04ec4c7e99eff9376e07 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 6 Feb 2019 17:08:41 +0100 Subject: Make sure maintenance mode is always casted to bool Signed-off-by: Joas Schilling --- ocs/v1.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ocs/v1.php') diff --git a/ocs/v1.php b/ocs/v1.php index 36749f44c1b..4e50392e752 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -33,7 +33,7 @@ require_once __DIR__ . '/../lib/versioncheck.php'; require_once __DIR__ . '/../lib/base.php'; if (\OCP\Util::needUpgrade() - || \OC::$server->getSystemConfig()->getValue('maintenance', false)) { + || \OC::$server->getConfig()->getSystemValueBool('maintenance')) { // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly http_response_code(503); @@ -103,4 +103,3 @@ try { .' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services.'."\n"; OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format); } - -- cgit v1.2.3