mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/16007] No strict comparison against "false"
PHPBB3-16007
This commit is contained in:
@@ -1932,7 +1932,7 @@ function validate_user_email($email, $allowed_email = false)
|
||||
|
||||
if (($ban = $user->check_ban(false, false, $email, true)) !== false)
|
||||
{
|
||||
return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
|
||||
return ($ban === true) ? 'EMAIL_BANNED' : (!empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : $ban);
|
||||
}
|
||||
|
||||
if (!$config['allow_emailreuse'])
|
||||
|
Reference in New Issue
Block a user