Jump to content

Wikia code/DONE/includes/specials/SpecialFewestrevisions.php

From mediawiki.org

MW doesn't like to use isset to check for null [1]. Are we checking for null here or literally checking that it isn't set?

Commit message by Tomek was "tomek 1/11/2011 5:35:15 AM #141987: Notice on Special:FewestRevisions page"

Merged this here: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97554

--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\specials\SpecialFewestrevisions.php	2011-07-18 22:31:17.632812500 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\specials\SpecialFewestrevisions.php	2011-08-17 15:28:16.275390600 +0100
@@ -66,7 +68,7 @@
 
 		$nl = wfMsgExt( 'nrevisions', array( 'parsemag', 'escape' ),
 			$wgLang->formatNum( $result->value ) );
-		$redirect = $result->redirect ? ' - ' . wfMsgHtml( 'isredirect' ) : '';
+		$redirect = isset($result->redirect) ? ' - ' . wfMsgHtml( 'isredirect' ) : '';
 		$nlink = $skin->linkKnown(
 			$nt,
 			$nl,