summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib/Migration/SetMasterKeyStatus.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/lib/Migration/SetMasterKeyStatus.php')
-rw-r--r--apps/encryption/lib/Migration/SetMasterKeyStatus.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/lib/Migration/SetMasterKeyStatus.php b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
index 9e800ac7cd3..a80d7144cc4 100644
--- a/apps/encryption/lib/Migration/SetMasterKeyStatus.php
+++ b/apps/encryption/lib/Migration/SetMasterKeyStatus.php
@@ -62,8 +62,8 @@ class SetMasterKeyStatus implements IRepairStep {
// if no config for the master key is set we set it explicitly to '0' in
// order not to break old installations because the default changed to '1'.
- $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', false);
- if ($configAlreadySet === false) {
+ $configAlreadySet = $this->config->getAppValue('encryption', 'useMasterKey', 'not-set');
+ if ($configAlreadySet === 'not-set') {
$this->config->setAppValue('encryption', 'useMasterKey', '0');
}
}