summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi12
1 files changed, 6 insertions, 6 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 4ad0720a9..9f00e15ae 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -200,12 +200,12 @@ sub GetGroupsByUserId {
return if !$userid;
SendSQL("
- SELECT groups.id, name, description, isactive
- FROM groups, user_group_map
- WHERE user_id = $userid AND NOT isbless
- AND user_group_map.group_id = groups.id
- AND isbuggroup
- ORDER BY description ");
+ SELECT DISTINCT groups.id, name, description, isactive
+ FROM groups, user_group_map
+ WHERE user_id = $userid AND NOT isbless
+ AND user_group_map.group_id = groups.id
+ AND isbuggroup
+ ORDER BY description ");
my @groups;