foreach ( (array)$params['users'] as $u )
$this->prepareUsername( $u );
$this->addWhereFld( 'ipb_address', $this->usernames );
+ $this->addWhereFld( 'ipb_auto', 0 );
}
if ( isset( $params['ip'] ) )
{
$this->addWhere( array(
'ipb_range_start' . $db->buildLike( $prefix, $db->anyString() ),
"ipb_range_start <= '$lower'",
- "ipb_range_end >= '$upper'"
+ "ipb_range_end >= '$upper'",
+ 'ipb_auto' => 0
) );
}
if ( !$wgUser->isAllowed( 'hideuser' ) )
$block['expiry'] = Block::decodeExpiry( $row->ipb_expiry, TS_ISO_8601 );
if ( $fld_reason )
$block['reason'] = $row->ipb_reason;
- if ( $fld_range )
+ if ( $fld_range && !$row->ipb_auto )
{
$block['rangestart'] = IP::hexToQuad( $row->ipb_range_start );
$block['rangeend'] = IP::hexToQuad( $row->ipb_range_end );