diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-24 14:51:38 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-09-24 14:51:38 +0200 |
commit | 383f381489c58a309cfd37405aa71ecb192a6f91 (patch) | |
tree | 1174626e6276998f531556b331618a04a6df501a /lib | |
parent | 594a31d260451d237a864f9f679c14c17d183ad4 (diff) | |
parent | d697ea58a42920518d5dbe30d41098cdd3f4b7d7 (diff) | |
download | nextcloud-server-383f381489c58a309cfd37405aa71ecb192a6f91.tar.gz nextcloud-server-383f381489c58a309cfd37405aa71ecb192a6f91.zip |
Merge pull request #19340 from owncloud/enc_fix_user_check
only check if the user exists if a user was added as parameter
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/encryption/decryptall.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/encryption/decryptall.php b/lib/private/encryption/decryptall.php index 1ff9c74ef84..c1875f16abd 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 ($user !== '' && $this->userManager->userExists($user) === false) { + if (!empty($user) && $this->userManager->userExists($user) === false) { $this->output->writeln('User "' . $user . '" does not exist. Please check the username and try again'); return false; } |