Little fixes (#1272)

This commit is contained in:
Cønstantine Kovalensky 2023-12-26 21:54:09 +04:00 committed by GitHub
commit cf8fd449f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -168,7 +168,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) {
if (!empty($_POST['username'])) {
$this_userdata = get_userdata($_POST['username'], true);
$user_id = $this_userdata['user_id'];
$user_id = $this_userdata ? $this_userdata['user_id'] : false;
} else {
$this_userdata = get_userdata($user_id);
}