mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Fixed bug #486207
git-svn-id: file:///svn/phpbb/trunk@1474 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -335,10 +335,18 @@ if( $mode == "edit" || $mode == "save" && ( isset($HTTP_POST_VARS['username']) |
|
||||
{
|
||||
$user_id = ( isset($HTTP_POST_VARS[POST_USERS_URL]) ) ? $HTTP_POST_VARS[POST_USERS_URL] : $HTTP_GET_VARS[POST_USERS_URL];
|
||||
$this_userdata = get_userdata_from_id($user_id);
|
||||
if( !$this_userdata )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this_userdata = get_userdata($HTTP_POST_VARS['username']);
|
||||
if( !$this_userdata )
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
@@ -551,8 +559,6 @@ else
|
||||
//
|
||||
// Default user selection box
|
||||
//
|
||||
// This should be altered on the final system
|
||||
//
|
||||
$sql = "SELECT user_id, username
|
||||
FROM " . USERS_TABLE . "
|
||||
WHERE user_id <> " . ANONYMOUS ."
|
||||
|
Reference in New Issue
Block a user