mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16123] Show proper banned email message
PHPBB3-16123
This commit is contained in:
parent
525c940385
commit
850ea776d9
1 changed files with 4 additions and 1 deletions
|
@ -1947,7 +1947,10 @@ function validate_user_email($email, $allowed_email = false)
|
|||
|
||||
if (($ban = $user->check_ban(false, false, $email, true)) !== false)
|
||||
{
|
||||
return ($ban === true) ? 'EMAIL_BANNED' : (!empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : $ban);
|
||||
if ($ban !== false)
|
||||
{
|
||||
return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
|
||||
}
|
||||
}
|
||||
|
||||
if (!$config['allow_emailreuse'])
|
||||
|
|
Loading…
Add table
Reference in a new issue