diff --git a/settings/admin.php b/settings/admin.php index 773e827653..94e48aab14 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -92,13 +92,13 @@ try { $defaultEncryptionModule = \OC::$server->getEncryptionManager()->getDefaultEncryptionModule(); $defaultEncryptionModuleId = $defaultEncryptionModule->getId(); } catch (Exception $e) { - $defaultEncryptionModule = null; + $defaultEncryptionModuleId = null; } $encModulues = array(); foreach ($encryptionModules as $module) { $encModulues[$module['id']]['displayName'] = $module['displayName']; $encModulues[$module['id']]['default'] = false; - if ($defaultEncryptionModule && $module['id'] === $defaultEncryptionModuleId) { + if ($module['id'] === $defaultEncryptionModuleId) { $encModulues[$module['id']]['default'] = true; } }