Index: trunk/phase3/includes/Revision.php |
— | — | @@ -274,8 +274,12 @@ |
275 | 275 | $this->mMinorEdit = intval( $row->rev_minor_edit ); |
276 | 276 | $this->mTimestamp = $row->rev_timestamp; |
277 | 277 | $this->mDeleted = intval( $row->rev_deleted ); |
278 | | - $this->mParentId = intval( $row->rev_parent_id ); |
279 | 278 | |
| 279 | + if( !isset( $row->rev_parent_id ) ) |
| 280 | + $this->mParentId = 0; |
| 281 | + else |
| 282 | + $this->mParentId = intval( $row->rev_parent_id ); |
| 283 | + |
280 | 284 | if( !isset( $row->rev_len ) || is_null( $row->rev_len ) ) |
281 | 285 | $this->mSize = null; |
282 | 286 | else |