summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
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 /lib/private/legacy
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 'lib/private/legacy')
-rw-r--r--lib/private/legacy/app.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 4cab92eba64..9b4a83de349 100644
--- a/lib/private/legacy/app.php
+++ b/lib/private/legacy/app.php
@@ -106,7 +106,7 @@ class OC_App {
* if $types is set to non-empty array, only apps of those types will be loaded
*/
public static function loadApps(array $types = []): bool {
- if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) {
+ if ((bool) \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
return false;
}
// Load the enabled apps here