aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-02-05 00:02:10 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-02-05 00:02:10 +0000
commitb09c5f6a2589d8bc6e4855d59aeb5556057ed9db (patch)
treefdf19c2a1d1468ee7db51111f95f2b555ef40645 /phpBB/includes/functions_user.php
parentfb0410903af19070ed42658e77a22bd9382e3b6f (diff)
downloadforums-b09c5f6a2589d8bc6e4855d59aeb5556057ed9db.tar
forums-b09c5f6a2589d8bc6e4855d59aeb5556057ed9db.tar.gz
forums-b09c5f6a2589d8bc6e4855d59aeb5556057ed9db.tar.bz2
forums-b09c5f6a2589d8bc6e4855d59aeb5556057ed9db.tar.xz
forums-b09c5f6a2589d8bc6e4855d59aeb5556057ed9db.zip
- Removes those silly errors during email check.
git-svn-id: file:///svn/phpbb/trunk@5525 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-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