diff --git a/e107_admin/users.php b/e107_admin/users.php index 604b80aa2..e1c9ad83f 100644 --- a/e107_admin/users.php +++ b/e107_admin/users.php @@ -1674,7 +1674,7 @@ class users } else { - if($sql->db_Count("user", "(*)", "WHERE user_ip = '{$row['user_ip']}' AND user_ban='0' AND user_id <> '".$user_id."' ") > 0) + if($sql->db_Count('user', '(*)', "WHERE user_ip = '{$row['user_ip']}' AND user_ban=0 AND user_id <> {$user_id}") > 0) { // Other unbanned users have same IP address $this->show_message(str_replace("{IP}",$row['user_ip'],USRLAN_136)); @@ -2398,4 +2398,4 @@ function RankImageDropdown(&$imgList, $field, $curVal = '') } -?> +?> \ No newline at end of file