]> source.dussan.org Git - nextcloud-server.git/commitdiff
only show decrypt all files option if encrypted files are available
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 30 Jul 2013 10:26:07 +0000 (12:26 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 30 Jul 2013 10:26:07 +0000 (12:26 +0200)
settings/personal.php

index f10b0afb0964b41fb424e8e80cac39c9192d0726..bad19ba03cee8397c32098b7388834a565a1655a 100644 (file)
@@ -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;
        }
 }