From b09c5f6a2589d8bc6e4855d59aeb5556057ed9db Mon Sep 17 00:00:00 2001 From: David M Date: Sun, 5 Feb 2006 00:02:10 +0000 Subject: [PATCH] - Removes those silly errors during email check. git-svn-id: file:///svn/phpbb/trunk@5525 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_user.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index c7b0abef7a..23407b0671 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -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