|
@@ -132,8 +132,9 @@ |
|
|
block discarded – undo |
|
132
|
132
|
protected function generateFacetChoices($facetType, array $facets, array $selectedFacets = array(), $formatter) { |
|
133
|
133
|
$choices = array(); |
|
134
|
134
|
foreach($facets as $facet => $count) { |
|
135
|
|
- if($count == 0 && !in_array($facet, $selectedFacets)) |
|
136
|
|
- continue; |
|
|
135
|
+ if($count == 0 && !in_array($facet, $selectedFacets)) { |
|
|
136
|
+ continue; |
|
|
137
|
+ } |
|
137
|
138
|
$choices[$this->formatFacet($formatter, $facetType, $facet, $count)] = $facet; |
|
138
|
139
|
} |
|
139
|
140
|
foreach($selectedFacets as $facet) { |
Please login to merge, or discard this patch.