Revert "Update admin_ug_auth.php"

This reverts commit df45bcd462.
This commit is contained in:
Roman Kelesidis 2024-02-11 15:19:16 +07:00
parent f2ee6c36b1
commit 38a8a44ceb

View File

@ -203,6 +203,7 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id))
if (!empty($_POST['username'])) if (!empty($_POST['username']))
{ {
$this_userdata = get_userdata($_POST['username'], true); $this_userdata = get_userdata($_POST['username'], true);
$user_id = $this_userdata['user_id'];
} }
else else
{ {
@ -217,7 +218,6 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id))
bb_die($message); bb_die($message);
unset($message); unset($message);
} }
$user_id = $this_userdata['user_id'];
if (!$forums = $datastore->get('cat_forums')) if (!$forums = $datastore->get('cat_forums'))
{ {