aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_user.php6
1 files changed, 1 insertions, 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