From ccd57dfa3037b14f29a80664ca2f428e2cf7c17b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 10 Mar 2010 20:01:49 +0000 Subject: [PATCH] Made getLatestRevID() return an integer --- includes/Title.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 06756d1061..246cc9df50 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2157,7 +2157,8 @@ class Title { return $this->mLatestID; $db = ($flags & GAID_FOR_UPDATE) ? wfGetDB(DB_MASTER) : wfGetDB(DB_SLAVE); - $this->mLatestID = $db->selectField( 'page', 'page_latest', $this->pageCond(), __METHOD__ ); + $this->mLatestID = (int)$db->selectField( + 'page', 'page_latest', $this->pageCond(), __METHOD__ ); return $this->mLatestID; } -- 2.20.1