fix for bad entries
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 16 Sep 2009 23:17:56 +0000 (23:17 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 16 Sep 2009 23:17:56 +0000 (23:17 +0000)
includes/specials/SpecialFewestrevisions.php

index 35311d7..3de1c34 100644 (file)
@@ -53,6 +53,10 @@ class FewestrevisionsPage extends QueryPage {
                global $wgLang, $wgContLang;
 
                $nt = Title::makeTitleSafe( $result->namespace, $result->title );
+               if( !$nt ) {
+                       return '<!-- bad title -->';
+               }
+               
                $text = $wgContLang->convert( $nt->getPrefixedText() );
 
                $plink = $skin->linkKnown(