From: Aaron Schulz Date: Wed, 30 Sep 2009 16:05:40 +0000 (+0000) Subject: Make sure countRevisionsBetween() returns an integer as doc says X-Git-Tag: 1.31.0-rc.0~39462 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/categories/modifier.php?a=commitdiff_plain;h=fa10eeeb70d1c98b855c85d2af6d83497ebbe21e;p=lhc%2Fweb%2Fwiklou.git Make sure countRevisionsBetween() returns an integer as doc says --- diff --git a/includes/Title.php b/includes/Title.php index 8d5fa050ca..dd6e3897d1 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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 ),