mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 17:50:39 +00:00
Merge "Use intval() to make string concatenation in DB query less scary"
This commit is contained in:
commit
51789ccf5f
|
@ -339,7 +339,7 @@ class MWEchoEmailBatch {
|
||||||
$res = $dbr->select(
|
$res = $dbr->select(
|
||||||
array( 'echo_email_batch' ),
|
array( 'echo_email_batch' ),
|
||||||
array( 'eeb_user_id' ),
|
array( 'eeb_user_id' ),
|
||||||
array( 'eeb_user_id > ' . $startUserId ),
|
array( 'eeb_user_id > ' . intval( $startUserId ) ),
|
||||||
__METHOD__,
|
__METHOD__,
|
||||||
array( 'ORDER BY' => 'eeb_user_id', 'LIMIT' => $batchSize )
|
array( 'ORDER BY' => 'eeb_user_id', 'LIMIT' => $batchSize )
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue