From: Aaron Schulz Date: Wed, 10 Mar 2010 20:01:49 +0000 (+0000) Subject: Made getLatestRevID() return an integer X-Git-Tag: 1.31.0-rc.0~37491 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=ccd57dfa3037b14f29a80664ca2f428e2cf7c17b;p=lhc%2Fweb%2Fwiklou.git Made getLatestRevID() return an integer --- 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; }