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/Maintenance/Mode.php | 2 +- core/Command/Maintenance/Repair.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core/Command/Maintenance') diff --git a/core/Command/Maintenance/Mode.php b/core/Command/Maintenance/Mode.php index db4c9dc8c0b..1692eb08d87 100644 --- a/core/Command/Maintenance/Mode.php +++ b/core/Command/Maintenance/Mode.php @@ -59,7 +59,7 @@ class Mode extends Command { } protected function execute(InputInterface $input, OutputInterface $output) { - $maintenanceMode = $this->config->getSystemValue('maintenance', false); + $maintenanceMode = $this->config->getSystemValueBool('maintenance'); if ($input->getOption('on')) { if ($maintenanceMode === false) { $this->config->setSystemValue('maintenance', true); diff --git a/core/Command/Maintenance/Repair.php b/core/Command/Maintenance/Repair.php index e9595a22285..460bc6880c1 100644 --- a/core/Command/Maintenance/Repair.php +++ b/core/Command/Maintenance/Repair.php @@ -106,7 +106,7 @@ class Repair extends Command { } } - $maintenanceMode = $this->config->getSystemValue('maintenance', false); + $maintenanceMode = $this->config->getSystemValueBool('maintenance'); $this->config->setSystemValue('maintenance', true); $this->progress = new ProgressBar($output); -- cgit v1.2.3