Index: trunk/extensions/SemanticDrilldown/specials/SD_BrowseData.php |
— | — | @@ -772,6 +772,14 @@ |
773 | 773 | if (! $this->show_single_cat) { |
774 | 774 | $header .= $this->printCategoriesList($categories); |
775 | 775 | } |
| 776 | + // if there are no subcategories or filters for this |
| 777 | + // category, escape now that we've (possibly) printed the |
| 778 | + // categories list |
| 779 | + if ((count($this->next_level_subcategories) == 0) && |
| 780 | + (count($this->applied_filters) == 0) && |
| 781 | + (count($this->remaining_filters) == 0)) { |
| 782 | + return $header; |
| 783 | + } |
776 | 784 | $header .= ' <div class="drilldown-header">' . "\n"; |
777 | 785 | if (count ($this->applied_filters) > 0 || $this->subcategory) { |
778 | 786 | $category_url = $this->makeBrowseURL($this->category); |