Make sure countRevisionsBetween() returns an integer as doc says
This commit is contained in:
parent
ea63b48375
commit
fa10eeeb70
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ),
|
||||
|
|
|
|||
Loading…
Reference in a new issue