fix notice
authorErik Moeller <erik@users.mediawiki.org>
Tue, 20 Apr 2004 23:29:52 +0000 (23:29 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Tue, 20 Apr 2004 23:29:52 +0000 (23:29 +0000)
includes/Skin.php

index 8ea26e8..f078b36 100644 (file)
@@ -541,7 +541,7 @@ class Skin {
                        global $wgExtraSubtitle;
                        $sub = wfMsg( "fromwikipedia" ) . $wgExtraSubtitle;
                }
-               if($wgOut->isArticle() && $wgNamespacesWithSubpages[$wgTitle->getNamespace()]) {
+               if($wgOut->isArticle() && !empty($wgNamespacesWithSubpages[$wgTitle->getNamespace()])) {
                        $ptext=$wgTitle->getPrefixedText();
                        if(preg_match("/\//",$ptext)) {
                                $sub.="</p><p class='subpages'>";