diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index d6e7a9b7f..642965eb2 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -813,6 +813,10 @@ sub init { $suppseen{$str} = 1; } } + + # Make sure we create a legal SQL query. + @andlist = ("1 = 1") if !@andlist; + my $query = ("SELECT DISTINCT " . join(', ', @fields) . ", COUNT(DISTINCT ugmap.group_id) AS cntuseringroups, " . |