From 60965ea037f9709acd9aa9cc415b423f20345a84 Mon Sep 17 00:00:00 2001 From: Marc Schumann Date: Mon, 26 May 2014 10:02:30 +0200 Subject: Bug 1015173: Groups report all members as being direct members. r=gerv, a=glob --- Bugzilla/Group.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Group.pm b/Bugzilla/Group.pm index 58c9ea19d..965fa226f 100644 --- a/Bugzilla/Group.pm +++ b/Bugzilla/Group.pm @@ -95,7 +95,8 @@ sub members_non_inherited { sub _get_members { my ($self, $grant_type) = @_; my $dbh = Bugzilla->dbh; - my $grant_clause = $grant_type ? "AND grant_type = $grant_type" : ""; + my $grant_clause = defined($grant_type) ? "AND grant_type = $grant_type" + : ""; my $user_ids = $dbh->selectcol_arrayref( "SELECT DISTINCT user_id FROM user_group_map -- cgit v1.2.3-24-g4f1b