From fa10eeeb70d1c98b855c85d2af6d83497ebbe21e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 30 Sep 2009 16:05:40 +0000 Subject: [PATCH] Make sure countRevisionsBetween() returns an integer as doc says --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ), -- 2.20.1