Address PHPStan warning in 'classes/pref/users.php'.

------ -------------------------------
Line   classes/pref/users.php
------ -------------------------------
170    If condition is always false.
------ -------------------------------
This commit is contained in:
wn_ 2021-11-01 20:33:46 +00:00
parent a38892d5d7
commit ac5a4f5937
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class Pref_Users extends Handler_Administrative {
$user->created = Db::NOW();
$user->save();
if ($new_uid = UserHelper::find_user_by_login($login)) {
if (!is_null(UserHelper::find_user_by_login($login))) {
print T_sprintf("Added user %s with password %s",
$login, $new_password);
} else {