API: Filter lists of IDs before sending them to the database
[lhc/web/wiklou.git] / includes / api / ApiQueryBlocks.php
index caaebc9..95f8cda 100644 (file)
@@ -103,7 +103,7 @@ class ApiQueryBlocks extends ApiQueryBase {
                }
 
                if ( isset( $params['ids'] ) ) {
-                       $this->addWhereFld( 'ipb_id', $params['ids'] );
+                       $this->addWhereIDsFld( 'ipblocks', 'ipb_id', $params['ids'] );
                }
                if ( isset( $params['users'] ) ) {
                        $usernames = [];