includes/sessions.php
changeset 495 00f5cd31217a
parent 485 7134d4bf7a23
child 499 6b7fdd898ba3
equal deleted inserted replaced
494:6c78cc456091 495:00f5cd31217a
  1700       $q = $this->sql($sql);
  1700       $q = $this->sql($sql);
  1701       if ( $db->numrows() > 0 )
  1701       if ( $db->numrows() > 0 )
  1702       {
  1702       {
  1703         while ( list($reason_temp, $ban_value, $ban_type, $is_regex) = $db->fetchrow_num() )
  1703         while ( list($reason_temp, $ban_value, $ban_type, $is_regex) = $db->fetchrow_num() )
  1704         {
  1704         {
  1705           if ( $ban_type == BAN_IP && $row['is_regex'] != 1 )
  1705           if ( $ban_type == BAN_IP && $is_regex != 1 )
  1706           {
  1706           {
  1707             // check range
  1707             // check range
  1708             $regexp = parse_ip_range_regex($ban_value);
  1708             $regexp = parse_ip_range_regex($ban_value);
  1709             if ( !$regexp )
  1709             if ( !$regexp )
  1710               continue;
  1710               continue;