diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 12:26:07 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-07-30 12:26:07 +0200 |
commit | c7eba69aea7eebd0ac1add07dd80dbb37d3443da (patch) | |
tree | 6a76e27917b6c1ba6274d79f93af96740691ad99 /settings/personal.php | |
parent | 3640c99462f35d35f6678d488016d9f672960d2b (diff) | |
download | nextcloud-server-c7eba69aea7eebd0ac1add07dd80dbb37d3443da.tar.gz nextcloud-server-c7eba69aea7eebd0ac1add07dd80dbb37d3443da.zip |
only show decrypt all files option if encrypted files are available
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/settings/personal.php b/settings/personal.php index f10b0afb096..bad19ba03ce 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -28,8 +28,7 @@ $languageCodes=OC_L10N::findAvailableLanguages(); $enableDecryptAll = false; if (OC_App::isEnabled('files_encryption') === false) { $view = new OC\Files\View('/'.OCP\User::getUser()); - $remainingKeys = $view->getDirectoryContent('/files_encryption/keyfiles'); - if (!empty($remainingKeys)) { + if($view->file_exists('/files_encryption/keyfiles')) { $enableDecryptAll = true; } } |