if the database doesn't contain any information about the recovery mode than we assume that it is disabled
This commit is contained in:
parent
4c7ef85252
commit
6e77fa46f2
|
@ -13,7 +13,7 @@ $tmpl = new OCP\Template('files_encryption', 'settings-admin');
|
||||||
// Check if an adminRecovery account is enabled for recovering files after lost pwd
|
// Check if an adminRecovery account is enabled for recovering files after lost pwd
|
||||||
$view = new OC_FilesystemView('');
|
$view = new OC_FilesystemView('');
|
||||||
|
|
||||||
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
|
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled', '0');
|
||||||
|
|
||||||
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue