diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-08-17 12:58:10 +0200 |
commit | 29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d (patch) | |
tree | 5317dac0dc1db2a2880a3eb91441559654f72340 /apps/files_encryption/settings-personal.php | |
parent | c538ac3081119e8bbd2aa375505ce79047a4d3f4 (diff) | |
download | nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.tar.gz nextcloud-server-29b6dd53a095fd4140bf68a5ba7a4fd57c04a82d.zip |
Compare result are already true/false
Diffstat (limited to 'apps/files_encryption/settings-personal.php')
-rw-r--r-- | apps/files_encryption/settings-personal.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/settings-personal.php b/apps/files_encryption/settings-personal.php index fddc3ea5eee..589219f32ad 100644 --- a/apps/files_encryption/settings-personal.php +++ b/apps/files_encryption/settings-personal.php @@ -16,7 +16,7 @@ $view = new \OC_FilesystemView('/'); $util = new \OCA\Encryption\Util($view, $user);
$session = new \OCA\Encryption\Session($view);
-$privateKeySet = ($session->getPrivateKey() !== false) ? true : false;
+$privateKeySet = $session->getPrivateKey() !== false; $recoveryAdminEnabled = OC_Appconfig::getValue('files_encryption', 'recoveryAdminEnabled');
$recoveryEnabledForUser = $util->recoveryEnabledForUser();
|