- Removes those silly errors during email check.

git-svn-id: file:///svn/phpbb/trunk@5525 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-02-05 00:02:10 +00:00
parent fb0410903a
commit b09c5f6a25

View file

@ -923,9 +923,7 @@ function validate_email($email)
return 'EMAIL_INVALID';
}
$sql = 'SELECT ban_email
FROM ' . BANLIST_TABLE;
$result = $db->sql_query($sql);
$banned = false;
// TODO: This is a duplication of code from session->check_ban()
$sql = 'SELECT ban_ip, ban_userid, ban_email, ban_exclude, ban_give_reason, ban_end
@ -962,8 +960,6 @@ function validate_email($email)
return 'EMAIL_BANNED';
}
$db->sql_freeresult($result);
if (!$config['allow_emailreuse'])
{
$sql = 'SELECT user_email_hash