Make sure countRevisionsBetween() returns an integer as doc says

This commit is contained in:
Aaron Schulz 2009-09-30 16:05:40 +00:00
parent ea63b48375
commit fa10eeeb70

View file

@ -3386,7 +3386,7 @@ class Title {
*/
public function countRevisionsBetween( $old, $new ) {
$dbr = wfGetDB( DB_SLAVE );
return $dbr->selectField( 'revision', 'count(*)',
return (int)$dbr->selectField( 'revision', 'count(*)',
'rev_page = ' . intval( $this->getArticleId() ) .
' AND rev_id > ' . intval( $old ) .
' AND rev_id < ' . intval( $new ),