aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index a0708e88bb..5668fee1d0 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -923,15 +923,16 @@ function validate_email($email)
return 'EMAIL_INVALID';
}
- $banned = false;
-
- // TODO: This is a duplication of code from session->check_ban()
+ /**
+ * @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
FROM ' . BANLIST_TABLE . '
WHERE ban_end >= ' . time() . '
OR ban_end = 0';
$result = $db->sql_query($sql);
+ $banned = false;
if ($row = $db->sql_fetchrow($result))
{
do