1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/9687] Use new array entries for bans

PHPBB3-9687
This commit is contained in:
Marc Alexander
2023-07-04 14:48:21 +02:00
parent 3563f20991
commit 9048aed163
4 changed files with 19 additions and 16 deletions

View File

@@ -1493,7 +1493,7 @@ function validate_user_email($email, $allowed_email = false)
$ban = $user->check_ban(false, false, $email, true);
if (!empty($ban))
{
return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
return !empty($ban['reason']) ? $ban['reason'] : 'EMAIL_BANNED';
}
if (!$config['allow_emailreuse'])