* (bug 21113) "Other statistics" header on Special:Statistics is no more displayed...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 14 Oct 2009 20:45:14 +0000 (20:45 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 14 Oct 2009 20:45:14 +0000 (20:45 +0000)
RELEASE-NOTES
includes/specials/SpecialStatistics.php

index c5b8391..4759d17 100644 (file)
@@ -555,6 +555,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 21030) Fixed schema choices from being overwritten by defining unique field names per driver.
 * (bug 21115) wgCanonicalSpecialPageName javascript variable is now always
   false on non-special pages
+* (bug 21113) "Other statistics" header on Special:Statistics is no more
+  displayed when there isn't any entry in it
 
 == API changes in 1.16 ==
 
index 51e76f8..2e785b8 100644 (file)
@@ -282,7 +282,10 @@ class SpecialStatistics extends SpecialPage {
        
        private function getOtherStats( $stats ) {
                global $wgLang;
-               
+
+               if ( !count( $stats ) )
+                       return '';
+
                $return = Xml::openElement( 'tr' ) .
                        Xml::tags( 'th', array( 'colspan' => '2' ), wfMsgExt( 'statistics-header-hooks', array( 'parseinline' ) ) ) .
                        Xml::closeElement( 'tr' );