mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 02:27:34 -07:00
Little fixes (#1272)
This commit is contained in:
parent
250b07f3c3
commit
cf8fd449f7
3 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue