From d697ea58a42920518d5dbe30d41098cdd3f4b7d7 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 24 Sep 2015 12:21:40 +0200 Subject: only check if the user exists if a user was added as parameter --- lib/private/encryption/decryptall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3