From 977fc893445ad42f218e85fb06c2df9e0196f5dd Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 6 Nov 2023 14:26:12 +0700 Subject: [PATCH] Revert "Update functions_validate.php" This reverts commit f5775e04441e9a47cff1fb952244525445728f14. --- library/includes/functions_validate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/includes/functions_validate.php b/library/includes/functions_validate.php index 0dd490bd..84386276 100644 --- a/library/includes/functions_validate.php +++ b/library/includes/functions_validate.php @@ -45,7 +45,7 @@ function validate_username ($username, $check_ban_and_taken = true) if ($row = DB()->fetch_row("SELECT username FROM ". BB_USERS ." WHERE username = '$username_sql' LIMIT 1")) { - if ((!IS_GUEST && $row['username'] != $user->name) || IS_GUEST || (request_var('admin', '') && IS_ADMIN)) + if ((!IS_GUEST && $row['username'] != $user->name) || IS_GUEST) { return $lang['USERNAME_TAKEN']; } @@ -111,4 +111,4 @@ function validate_email ($email, $check_ban_and_taken = true) } return false; -} +} \ No newline at end of file