1
0
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:
mrgoldy
2019-04-02 17:25:00 +02:00
parent 68434e6dbc
commit fc62538733
3 changed files with 7 additions and 4 deletions

View File

@@ -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'])