diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-24 12:21:40 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-09-24 12:21:40 +0200 |
commit | d697ea58a42920518d5dbe30d41098cdd3f4b7d7 (patch) | |
tree | 5de81d695af9a9692eedf897e3f0a1bda50d5223 /lib | |
parent | 330ea18996f4f5bfcbaaebf641d6502757077c4d (diff) | |
download | nextcloud-server-d697ea58a42920518d5dbe30d41098cdd3f4b7d7.tar.gz nextcloud-server-d697ea58a42920518d5dbe30d41098cdd3f4b7d7.zip |
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; } |