From 582ad7e51334b290648e96dd4367a0423ac40df0 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 16 Sep 2011 19:39:53 +0000 Subject: [PATCH] Removed useless check since the variable always exists and null would be catched by the second part --- includes/actions/CreditsAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 1040085b3a..d03ff5709b 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -67,7 +67,7 @@ class CreditsAction extends FormlessAction { wfProfileIn( __METHOD__ ); $s = ''; - if ( isset( $cnt ) && $cnt != 0 ) { + if ( $cnt != 0 ) { $s = self::getAuthor( $this->page ); if ( $cnt > 1 || $cnt < 0 ) { $s .= ' ' . $this->getContributors( $cnt - 1, $showIfMax ); -- 2.20.1