mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
bugfixes...
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4009 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -207,12 +207,13 @@ if (
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Let's make sure the user isn't logged in while registering,
|
||||
// and ensure that they were trying to register a second time
|
||||
// (Prevents double registrations)
|
||||
//
|
||||
if ( $userdata['session_logged_in'] && $mode == 'register' && $username == $userdata['username'])
|
||||
if ($mode == 'register' && ($userdata['session_logged_in'] || $username == $userdata['username']))
|
||||
{
|
||||
message_die(GENERAL_MESSAGE, $lang['Username_taken'], '', __LINE__, __FILE__);
|
||||
}
|
||||
|
Reference in New Issue
Block a user