summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-06-07 09:13:11 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-06-09 14:00:00 +0200
commit4f27c2c43341e8798669a72a7da36a33e873490a (patch)
treef4f405d941ad9adf681e3b6fe620e354da51a0ac /lib
parent60e15e934c6556d34d27ff214f6a148247605bc2 (diff)
downloadnextcloud-server-4f27c2c43341e8798669a72a7da36a33e873490a.tar.gz
nextcloud-server-4f27c2c43341e8798669a72a7da36a33e873490a.zip
Allow to decrypt user '0' files only
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Encryption/DecryptAll.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Encryption/DecryptAll.php b/lib/private/Encryption/DecryptAll.php
index 8676bc09575..34a3e1bff91 100644
--- a/lib/private/Encryption/DecryptAll.php
+++ b/lib/private/Encryption/DecryptAll.php
@@ -80,7 +80,7 @@ class DecryptAll {
$this->input = $input;
$this->output = $output;
- if (!empty($user) && $this->userManager->userExists($user) === false) {
+ if ($user !== '' && $this->userManager->userExists($user) === false) {
$this->output->writeln('User "' . $user . '" does not exist. Please check the username and try again');
return false;
}
@@ -141,7 +141,7 @@ class DecryptAll {
$this->output->writeln("\n");
$userList = [];
- if (empty($user)) {
+ if ($user === '') {
$fetchUsersProgress = new ProgressBar($this->output);
$fetchUsersProgress->setFormat(" %message% \n [%bar%]");