View user's profile also by it's username (#1048)

This commit is contained in:
Cønstantine Kovalensky 2023-11-07 01:33:51 +04:00 committed by GitHub
commit 444a872579
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ if (!$userdata['session_logged_in']) {
}
}
if (!$profiledata = get_userdata($_GET[POST_USERS_URL])) {
if (!$profiledata = get_userdata($_GET[POST_USERS_URL], !is_numeric($_GET[POST_USERS_URL]))) {
bb_die($lang['NO_USER_ID_SPECIFIED']);
}