Update sessions.php

This commit is contained in:
Roman Kelesidis 2024-01-03 15:25:32 +07:00
parent 7c991465cd
commit dff2f81f64

View File

@ -240,7 +240,7 @@ class user_common
$where_sql = "ban_ip IN('". USER_IP ."', '$ip[1]$ip[2]$ip[3]ff', '$ip[1]$ip[2]ffff', '$ip[1]ffffff')";
$where_sql .= ($login) ? " OR ban_userid = $user_id" : '';
$where_sql .= ($login) ? " OR ban_email = $user_email" : ''; // Check by email
$where_sql .= ($login) ? " OR ban_email = '$user_email'" : ''; // Check by email
$sql = "SELECT ban_id FROM ". BB_BANLIST ." WHERE $where_sql LIMIT 1";