Fix method call + undefined variable
1. Variable is not defined 2. Method does not expect any parameters ``` Undefined variable: user at /Users/lukasreschke/Documents/Programming/master/apps/encryption/settings/settings-admin.php#45 ```
This commit is contained in:
parent
336fe868b2
commit
fb12063ae5
|
@ -42,7 +42,7 @@ $util = new \OCA\Encryption\Util(
|
||||||
$recoveryAdminEnabled = \OC::$server->getConfig()->getAppValue('encryption', 'recoveryAdminEnabled', '0');
|
$recoveryAdminEnabled = \OC::$server->getConfig()->getAppValue('encryption', 'recoveryAdminEnabled', '0');
|
||||||
$session = new \OCA\Encryption\Session(\OC::$server->getSession());
|
$session = new \OCA\Encryption\Session(\OC::$server->getSession());
|
||||||
|
|
||||||
$encryptHomeStorage = $util->shouldEncryptHomeStorage($user);
|
$encryptHomeStorage = $util->shouldEncryptHomeStorage();
|
||||||
|
|
||||||
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
$tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
|
||||||
$tmpl->assign('initStatus', $session->getStatus());
|
$tmpl->assign('initStatus', $session->getStatus());
|
||||||
|
|
Loading…
Reference in New Issue