1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

check ban issue fix

This commit is contained in:
secretr
2011-09-15 13:03:25 +00:00
parent d5dda7fd50
commit c3e47ec137
2 changed files with 8 additions and 5 deletions

View File

@@ -606,13 +606,13 @@ Following fields auto-filled in code as required:
}
elseif ($u_sql->db_Count('user', '(*)', "WHERE `user_email`='".$v."' AND `user_ban`=1 "))
{
$errMsg = ERR_BANNED_USER;
$errMsg = ERR_BANNED_USER;
}
else
{ // See if email address banned
$wc = $this->make_email_query($v); // Generate the query for the ban list
if ($wc) { $wc = "`banlist_ip`='{$v}' OR ".$wc; }
if (($wc === FALSE) || e107::getInstance()->check_ban($wc, FALSE, TRUE))
if (($wc === FALSE) || !e107::getInstance()->check_ban($wc, FALSE, TRUE))
{
// echo "Email banned<br />";
$errMsg = ERR_BANNED_EMAIL;