mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16123] Check with empty()
PHPBB3-16123
This commit is contained in:
parent
850ea776d9
commit
56e2f1a3f6
1 changed files with 1 additions and 1 deletions
|
@ -1947,7 +1947,7 @@ function validate_user_email($email, $allowed_email = false)
|
||||||
|
|
||||||
if (($ban = $user->check_ban(false, false, $email, true)) !== false)
|
if (($ban = $user->check_ban(false, false, $email, true)) !== false)
|
||||||
{
|
{
|
||||||
if ($ban !== false)
|
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';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue