Skip to content
Snippets Groups Projects
Commit 6e77fa46 authored by Björn Schießle's avatar Björn Schießle
Browse files

if the database doesn't contain any information about the recovery mode than...

if the database doesn't contain any information about the recovery mode than we assume that it is disabled
parent 4c7ef852
Branches
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ $tmpl = new OCP\Template('files_encryption', 'settings-admin'); ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment