Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-06 19:08:41 +0300
committerJoas Schilling <coding@schilljs.com>2019-02-22 10:25:41 +0300
commit0c77cd21f94dd9922e0e04ec4c7e99eff9376e07 (patch)
treea9c413768e4de0b393b44bd2d49f1a4cfeb7b782 /ocs
parenta11ef5134cb4200399e74811bbf9d1100923efcd (diff)
Make sure maintenance mode is always casted to bool
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php3
1 files changed, 1 insertions, 2 deletions
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);
}
-