summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair/NC20/EncryptionLegacyCipher.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Repair/NC20/EncryptionLegacyCipher.php')
-rw-r--r--lib/private/Repair/NC20/EncryptionLegacyCipher.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Repair/NC20/EncryptionLegacyCipher.php b/lib/private/Repair/NC20/EncryptionLegacyCipher.php
index 0be34679fcb..f887feefc98 100644
--- a/lib/private/Repair/NC20/EncryptionLegacyCipher.php
+++ b/lib/private/Repair/NC20/EncryptionLegacyCipher.php
@@ -58,7 +58,8 @@ class EncryptionLegacyCipher implements IRepairStep {
return;
}
- if ($this->manager->isEnabled()) {
+ $masterKeyId = $this->config->getAppValue('encryption', 'masterKeyId');
+ if ($this->manager->isEnabled() || !empty($masterKeyId)) {
if ($this->config->getSystemValue('encryption.legacy_format_support', '') === '') {
$this->config->setSystemValue('encryption.legacy_format_support', true);
}