Index: trunk/phase3/includes/Title.php |
— | — | @@ -2157,7 +2157,8 @@ |
2158 | 2158 | return $this->mLatestID; |
2159 | 2159 | |
2160 | 2160 | $db = ($flags & GAID_FOR_UPDATE) ? wfGetDB(DB_MASTER) : wfGetDB(DB_SLAVE); |
2161 | | - $this->mLatestID = $db->selectField( 'page', 'page_latest', $this->pageCond(), __METHOD__ ); |
| 2161 | + $this->mLatestID = (int)$db->selectField( |
| 2162 | + 'page', 'page_latest', $this->pageCond(), __METHOD__ ); |
2162 | 2163 | return $this->mLatestID; |
2163 | 2164 | } |
2164 | 2165 | |