From: Pppery Date: Thu, 14 Dec 2017 01:56:14 +0000 (-0500) Subject: Fix manual IN queries in checkStorage.php X-Git-Tag: 1.31.0-rc.0~1202 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=7900790c7a3a28b8054a18473df71abacb9ec669;p=lhc%2Fweb%2Fwiklou.git Fix manual IN queries in checkStorage.php Bug: T182689 Change-Id: Ifca7bd6d0385dd470cddc483f4641eeb2832580c --- diff --git a/maintenance/storage/checkStorage.php b/maintenance/storage/checkStorage.php index 4071a06b4c..6348e96b21 100644 --- a/maintenance/storage/checkStorage.php +++ b/maintenance/storage/checkStorage.php @@ -208,7 +208,9 @@ class CheckStorage { $blobsTable = $this->dbStore->getTable( $extDb ); $res = $extDb->select( $blobsTable, [ 'blob_id' ], - [ 'blob_id IN( ' . implode( ',', $blobIds ) . ')' ], __METHOD__ ); + [ 'blob_id' => $blobIds ], + __METHOD__ + ); foreach ( $res as $row ) { unset( $xBlobIds[$row->blob_id] ); } @@ -410,7 +412,9 @@ class CheckStorage { $headerLength = strlen( self::CONCAT_HEADER ); $res = $extDb->select( $blobsTable, [ 'blob_id', "LEFT(blob_text, $headerLength) AS header" ], - [ 'blob_id IN( ' . implode( ',', $blobIds ) . ')' ], __METHOD__ ); + [ 'blob_id' => $blobIds ], + __METHOD__ + ); foreach ( $res as $row ) { if ( strcasecmp( $row->header, self::CONCAT_HEADER ) ) { $this->addError(