r97327 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97326‎ | r97327 | r97328 >
Date:19:39, 16 September 2011
Author:ialex
Status:ok
Tags:
Comment:
Removed useless check since the variable always exists and null would be catched by the second part
Modified paths:
  • /trunk/phase3/includes/actions/CreditsAction.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/actions/CreditsAction.php
@@ -67,7 +67,7 @@
6868 wfProfileIn( __METHOD__ );
6969 $s = '';
7070
71 - if ( isset( $cnt ) && $cnt != 0 ) {
 71+ if ( $cnt != 0 ) {
7272 $s = self::getAuthor( $this->page );
7373 if ( $cnt > 1 || $cnt < 0 ) {
7474 $s .= ' ' . $this->getContributors( $cnt - 1, $showIfMax );

Status & tagging log