]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix method call + undefined variable
authorLukas Reschke <lukas@owncloud.com>
Tue, 5 Jan 2016 08:50:59 +0000 (09:50 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 7 Jan 2016 12:22:06 +0000 (13:22 +0100)
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
```

apps/encryption/settings/settings-admin.php

index 8d55d587fedd175cb629d1ef83049a807a09864b..32640ef06619230530041badc255287b3147cc57 100644 (file)
@@ -42,7 +42,7 @@ $util = new \OCA\Encryption\Util(
 $recoveryAdminEnabled = \OC::$server->getConfig()->getAppValue('encryption', 'recoveryAdminEnabled', '0');
 $session = new \OCA\Encryption\Session(\OC::$server->getSession());
 
-$encryptHomeStorage = $util->shouldEncryptHomeStorage($user);
+$encryptHomeStorage = $util->shouldEncryptHomeStorage();
 
 $tmpl->assign('recoveryEnabled', $recoveryAdminEnabled);
 $tmpl->assign('initStatus', $session->getStatus());