diff -r 6c78cc456091 -r 00f5cd31217a includes/sessions.php --- a/includes/sessions.php Sat Mar 08 12:12:27 2008 -0500 +++ b/includes/sessions.php Sat Mar 08 12:13:23 2008 -0500 @@ -1702,7 +1702,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);