mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-12 22:35:55 +00:00
Address PHPStan warning in 'classes/pref/users.php'.
------ ------------------------------- Line classes/pref/users.php ------ ------------------------------- 170 If condition is always false. ------ -------------------------------
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user