From 38a8a44cebe56ad485495acedc8a7cdcbaca2e7f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 11 Feb 2024 15:19:16 +0700 Subject: [PATCH] Revert "Update admin_ug_auth.php" This reverts commit df45bcd4623de971f6b3d37d502b81d07744c2c7. --- admin/admin_ug_auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/admin_ug_auth.php b/admin/admin_ug_auth.php index 79f2a16c..062af1d4 100644 --- a/admin/admin_ug_auth.php +++ b/admin/admin_ug_auth.php @@ -203,6 +203,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']; } else { @@ -217,7 +218,6 @@ if ($mode == 'user' && (!empty($_POST['username']) || $user_id)) bb_die($message); unset($message); } - $user_id = $this_userdata['user_id']; if (!$forums = $datastore->get('cat_forums')) {