From: Bjoern Schiessle Date: Tue, 30 Jul 2013 10:26:07 +0000 (+0200) Subject: only show decrypt all files option if encrypted files are available X-Git-Tag: v6.0.0alpha2~292^2~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c7eba69aea7eebd0ac1add07dd80dbb37d3443da;p=nextcloud-server.git only show decrypt all files option if encrypted files are available --- 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; } }