Merge "Use intval() to make string concatenation in DB query less scary"

This commit is contained in:
jenkins-bot 2015-06-08 21:50:25 +00:00 committed by Gerrit Code Review
commit 51789ccf5f

View file

@ -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 )
); );