if the database doesn't contain any information about the recovery mode than we assume that it is disabled

This commit is contained in:
Bjoern Schiessle 2013-10-30 11:28:36 +01:00
parent 4c7ef85252
commit 6e77fa46f2
1 changed files with 1 additions and 1 deletions

View File

@ -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
$view = new OC_FilesystemView('');
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled', '0');
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);