From 38b689c9e1e8bc332dc0b7982e09b7734dab44ad Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 11 Feb 2024 15:19:36 +0700 Subject: [PATCH] Revert "Update admin_ug_auth.php" This reverts commit 7bf10b3e50120def878254feaac9b708d4ee0808. --- 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 062af1d4..3b89a64d 100644 --- a/admin/admin_ug_auth.php +++ b/admin/admin_ug_auth.php @@ -203,7 +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']; + $user_id = $this_userdata ? $this_userdata['user_id'] : false; } else {