diff -r ec90736b9cb9 -r ceff43bbc3d3 includes/sessions.php --- a/includes/sessions.php Mon Feb 18 16:27:28 2008 -0500 +++ b/includes/sessions.php Mon Feb 18 16:28:27 2008 -0500 @@ -1624,7 +1624,7 @@ { while ( list($reason_temp, $ban_value, $ban_type, $is_regex) = $db->fetchrow_num() ) { - if ( $ban_type == BAN_IP && $row['is_regex'] != 1 ) + if ( $ban_type == BAN_IP && $is_regex != 1 ) { // check range $regexp = parse_ip_range_regex($ban_value);