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 --- core/Command/Encryption/DecryptAll.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Command/Encryption/DecryptAll.php') diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php index 253223f9529..6ae90196963 100644 --- a/core/Command/Encryption/DecryptAll.php +++ b/core/Command/Encryption/DecryptAll.php @@ -89,7 +89,7 @@ class DecryptAll extends Command { */ protected function forceMaintenanceAndTrashbin() { $this->wasTrashbinEnabled = $this->appManager->isEnabledForUser('files_trashbin'); - $this->wasMaintenanceModeEnabled = $this->config->getSystemValue('maintenance', false); + $this->wasMaintenanceModeEnabled = $this->config->getSystemValueBool('maintenance'); $this->config->setSystemValue('maintenance', true); $this->appManager->disableApp('files_trashbin'); } -- cgit v1.2.3