Skip to content
Snippets Groups Projects
Commit ac5a4f59 authored by wn_'s avatar wn_
Browse files

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

------ -------------------------------
Line   classes/pref/users.php
------ -------------------------------
170    If condition is always false.
------ -------------------------------
parent a38892d5
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment