Support simultaneous id & username inputs for browsing profiles (#1166)

This commit is contained in:
Cønstantine Kovalensky 2023-11-24 12:01:11 +04:00 committed by GitHub
commit 82251ece8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

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