mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/16123] Remove redundant if check
PHPBB3-16123
This commit is contained in:
parent
cf898133a4
commit
6e20cd5d22
1 changed files with 3 additions and 5 deletions
|
@ -1945,12 +1945,10 @@ function validate_user_email($email, $allowed_email = false)
|
|||
return $validate_email;
|
||||
}
|
||||
|
||||
if (($ban = $user->check_ban(false, false, $email, true)) !== false)
|
||||
$ban = $user->check_ban(false, false, $email, true);
|
||||
if (!empty($ban))
|
||||
{
|
||||
if (!empty($ban))
|
||||
{
|
||||
return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
|
||||
}
|
||||
return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
|
||||
}
|
||||
|
||||
if (!$config['allow_emailreuse'])
|
||||
|
|
Loading…
Add table
Reference in a new issue