From: Aaron Schulz Date: Sun, 13 Apr 2008 20:02:50 +0000 (+0000) Subject: No need to check if $row->rev_id is set X-Git-Tag: 1.31.0-rc.0~48359 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=89ee3bb67ac844c0dafba46d49342e48638ec8f7;p=lhc%2Fweb%2Fwiklou.git No need to check if $row->rev_id is set --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 8fe496d590..ea1d3d854d 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -270,13 +270,11 @@ class NewPagesForm { } protected function feedItemDesc( $row ) { - if( isset( $row->rev_id ) ) { - $revision = Revision::newFromId( $row->rev_id ); - if( $revision ) { - return '

' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' . - htmlspecialchars( $revision->getComment() ) . "

\n
\n
" . - nl2br( htmlspecialchars( $revision->getText() ) ) . "
"; - } + $revision = Revision::newFromId( $row->rev_id ); + if( $revision ) { + return '

' . htmlspecialchars( wfMsg( 'summary' ) ) . ': ' . + htmlspecialchars( $revision->getComment() ) . "

\n
\n
" . + nl2br( htmlspecialchars( $revision->getText() ) ) . "
"; } return ''; }