Merge pull request #5618 from owncloud/set_default_value_for_recovery_mode

[encryption] add defaut value to getValue() call
This commit is contained in:
Björn Schießle 2013-10-30 04:42:21 -07:00
commit 4c964cbbbe
1 changed files with 1 additions and 3 deletions

View File

@ -11,9 +11,7 @@
$tmpl = new OCP\Template('files_encryption', 'settings-admin'); $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(''); $recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled', '0');
$recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled); $tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);