*
* @param int|array $blockId
* @param IDatabase|null $db
- * @param array $options Options to pass to the select query.
* @return Restriction[]
*/
public static function loadByBlockId( $blockId, IDatabase $db = null ) {
$blockIds = array_keys( $restrictionList );
if ( !empty( $blockIds ) ) {
$result = $dbw->select(
- [ 'ipblocks_restrictions', 'page' ],
+ [ 'ipblocks_restrictions' ],
[ 'ir_ipb_id', 'ir_type', 'ir_value' ],
[ 'ir_ipb_id' => $blockIds ],
__METHOD__,