diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-01-06 16:57:32 +0100 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-01-12 20:03:06 +0100 |
commit | aeecb72e96e54439f98822467bb727366207039f (patch) | |
tree | b77aee20add8d099a271131e0b4b0986426e5df1 /apps/encryption/lib/Migration/SetMasterKeyStatus.php | |
parent | 47c9c34cca22602fb609de6c0e1d32ec17a9e7fe (diff) | |
download | nextcloud-server-aeecb72e96e54439f98822467bb727366207039f.tar.gz nextcloud-server-aeecb72e96e54439f98822467bb727366207039f.zip |
Fix a few psalm issues and moved back to psalm/phar 4.18
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps/encryption/lib/Migration/SetMasterKeyStatus.php')
-rw-r--r-- | apps/encryption/lib/Migration/SetMasterKeyStatus.php | 4 |
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'); } } |