From dfac9f5813df7d4c7c812c381364c8898333f559 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 11 Sep 2024 17:14:53 +0200 Subject: PHPStan booleansInConditions (#6793) * PHPStan booleansInConditions * Uniformisation --- cli/create-user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/create-user.php') diff --git a/cli/create-user.php b/cli/create-user.php index 1be604a42..ae560b49e 100755 --- a/cli/create-user.php +++ b/cli/create-user.php @@ -58,7 +58,7 @@ if (!empty($cliOptions->errors)) { $username = $cliOptions->user; -if (preg_grep("/^$username$/i", listUsers())) { +if (!empty(preg_grep("/^$username$/i", listUsers()))) { fail('FreshRSS warning: username already exists “' . $username . '”', EXIT_CODE_ALREADY_EXISTS); } -- cgit v1.2.3