aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-02-06 17:08:41 +0100
committerJoas Schilling <coding@schilljs.com>2019-02-22 08:25:41 +0100
commit0c77cd21f94dd9922e0e04ec4c7e99eff9376e07 (patch)
treea9c413768e4de0b393b44bd2d49f1a4cfeb7b782 /apps/dav/lib
parenta11ef5134cb4200399e74811bbf9d1100923efcd (diff)
downloadnextcloud-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 'apps/dav/lib')
-rw-r--r--apps/dav/lib/Connector/Sabre/MaintenancePlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
index 36110c81db9..9c5946481b6 100644
--- a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
+++ b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
@@ -78,7 +78,7 @@ class MaintenancePlugin extends ServerPlugin {
* @return bool
*/
public function checkMaintenanceMode() {
- if ($this->config->getSystemValue('maintenance', false)) {
+ if ($this->config->getSystemValueBool('maintenance')) {
throw new ServiceUnavailable('System in maintenance mode.');
}
if (Util::needUpgrade()) {