do not generate category html if no category links exist
authorErik Moeller <erik@users.mediawiki.org>
Mon, 31 May 2004 22:19:26 +0000 (22:19 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Mon, 31 May 2004 22:19:26 +0000 (22:19 +0000)
includes/Skin.php

index 873be41..be19c19 100644 (file)
@@ -373,7 +373,10 @@ class Skin {
        }
        
        function getCategories() {
-               return "<p class='catlinks'>" . $this->getCategoryLinks() . "</p>";
+               $catlinks=$this->getCategoryLinks();
+               if(!empty($catlinks)) {
+                       return "<p class='catlinks'>{$catlinks}</p>";
+               }
        }
 
        function getQuickbarCompensator( $rows = 1 )