Index: trunk/phase3/includes/Revision.php |
— | — | @@ -819,7 +819,8 @@ |
820 | 820 | 'rev_timestamp' => $dbw->timestamp( $this->mTimestamp ), |
821 | 821 | 'rev_deleted' => $this->mDeleted, |
822 | 822 | 'rev_len' => $this->mSize, |
823 | | - 'rev_parent_id' => $this->mParentId ? $this->mParentId : $this->getPreviousRevisionId( $dbw ) |
| 823 | + 'rev_parent_id' => is_null($this->mParentId) ? |
| 824 | + $this->getPreviousRevisionId( $dbw ) : $this->mParentId |
824 | 825 | ), __METHOD__ |
825 | 826 | ); |
826 | 827 | |