Index: branches/REL1_17/phase3/includes/ChangesList.php |
— | — | @@ -433,7 +433,7 @@ |
434 | 434 | $page = $rc->getTitle(); |
435 | 435 | /** Check for rollback and edit permissions, disallow special pages, and only |
436 | 436 | * show a link on the top-most revision */ |
437 | | - if ($wgUser->isAllowed('rollback') && $rc->mAttribs['page_latest'] == $rc->mAttribs['rc_this_oldid'] ) |
| 437 | + if ($wgUser->isAllowed('rollback') && !empty($rc->mAttribs['page_latest']) && $rc->mAttribs['page_latest'] == $rc->mAttribs['rc_this_oldid'] ) |
438 | 438 | { |
439 | 439 | $rev = new Revision( array( |
440 | 440 | 'id' => $rc->mAttribs['rc_this_oldid'], |