Index: trunk/phase3/includes/Title.php |
— | — | @@ -240,7 +240,7 @@ |
241 | 241 | $t->mArticleID = isset( $row->page_id ) ? intval( $row->page_id ) : -1; |
242 | 242 | $t->mLength = isset( $row->page_len ) ? intval( $row->page_len ) : -1; |
243 | 243 | $t->mRedirect = isset( $row->page_is_redirect ) ? (bool)$row->page_is_redirect : null; |
244 | | - $t->mLatestID = isset( $row->page_latest ) ? $row->page_latest : false; |
| 244 | + $t->mLatestID = isset( $row->page_latest ) ? intval( $row->page_latest ) : false; |
245 | 245 | |
246 | 246 | return $t; |
247 | 247 | } |
— | — | @@ -2330,7 +2330,7 @@ |
2331 | 2331 | */ |
2332 | 2332 | public function getLatestRevID( $flags = 0 ) { |
2333 | 2333 | if ( $this->mLatestID !== false ) |
2334 | | - return $this->mLatestID; |
| 2334 | + return intval( $this->mLatestID ); |
2335 | 2335 | # Calling getArticleID() loads the field from cache as needed |
2336 | 2336 | if ( !$this->getArticleID( $flags ) ) { |
2337 | 2337 | return $this->mLatestID = 0; |