}
if ( isset( $params['ids'] ) ) {
- $this->addWhereFld( 'ipb_id', $params['ids'] );
+ $this->addWhereIDsFld( 'ipblocks', 'ipb_id', $params['ids'] );
}
if ( isset( $params['users'] ) ) {
$usernames = [];
$restrictions = [];
if ( $fld_restrictions ) {
- $restrictions = $this->getRestrictionData( $res, $params['limit'] );
+ $restrictions = self::getRestrictionData( $res, $params['limit'] );
}
$count = 0;