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

Change-Id: I51d7744b8c7f967e47777b5f3a6e491f4e65f5c8
This commit is contained in:
Kunal Mehta 2015-06-08 14:36:08 -07:00
parent 24cd62e322
commit 58b7cc7cfd

View file

@ -339,7 +339,7 @@ class MWEchoEmailBatch {
$res = $dbr->select(
array( 'echo_email_batch' ),
array( 'eeb_user_id' ),
array( 'eeb_user_id > ' . $startUserId ),
array( 'eeb_user_id > ' . intval( $startUserId ) ),
__METHOD__,
array( 'ORDER BY' => 'eeb_user_id', 'LIMIT' => $batchSize )
);