Fix potential undefined variable
This commit is contained in:
parent
4d238c3949
commit
b5c5775626
|
@ -92,13 +92,13 @@ try {
|
||||||
$defaultEncryptionModule = \OC::$server->getEncryptionManager()->getDefaultEncryptionModule();
|
$defaultEncryptionModule = \OC::$server->getEncryptionManager()->getDefaultEncryptionModule();
|
||||||
$defaultEncryptionModuleId = $defaultEncryptionModule->getId();
|
$defaultEncryptionModuleId = $defaultEncryptionModule->getId();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$defaultEncryptionModule = null;
|
$defaultEncryptionModuleId = null;
|
||||||
}
|
}
|
||||||
$encModulues = array();
|
$encModulues = array();
|
||||||
foreach ($encryptionModules as $module) {
|
foreach ($encryptionModules as $module) {
|
||||||
$encModulues[$module['id']]['displayName'] = $module['displayName'];
|
$encModulues[$module['id']]['displayName'] = $module['displayName'];
|
||||||
$encModulues[$module['id']]['default'] = false;
|
$encModulues[$module['id']]['default'] = false;
|
||||||
if ($defaultEncryptionModule && $module['id'] === $defaultEncryptionModuleId) {
|
if ($module['id'] === $defaultEncryptionModuleId) {
|
||||||
$encModulues[$module['id']]['default'] = true;
|
$encModulues[$module['id']]['default'] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue