summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/grouped-search/html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/search/elements/grouped-search/html')
-rw-r--r--httemplate/search/elements/grouped-search/html6
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/elements/grouped-search/html b/httemplate/search/elements/grouped-search/html
index df1471a52..293da338f 100644
--- a/httemplate/search/elements/grouped-search/html
+++ b/httemplate/search/elements/grouped-search/html
@@ -67,8 +67,10 @@ if ( $group->num_rows > scalar(@rows) ) {
# set up tab bar
my @menubar;
-for (my $i = 0; $i < $group_info->{num}; $i++) {
- push @menubar, $group_info->{group_labels}[$i], ";group=$i";
+if ($group_info->{num} > 1) {
+ for (my $i = 0; $i < $group_info->{num}; $i++) {
+ push @menubar, $group_info->{group_labels}[$i], ";group=$i";
+ }
}
# not enabled yet; if we need this at some point, enable it on a per-report