aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMarc Schumann <wurblzap@gmail.com>2014-05-26 10:02:30 +0200
committerMarc Schumann <wurblzap@gmail.com>2014-05-26 10:02:30 +0200
commit60965ea037f9709acd9aa9cc415b423f20345a84 (patch)
tree173207fe4d2f1fde2562974a3824539b305cf031 /Bugzilla
parent9bd3f08dce23acc052819d97d1f082666c354b20 (diff)
downloadbugs-60965ea037f9709acd9aa9cc415b423f20345a84.tar
bugs-60965ea037f9709acd9aa9cc415b423f20345a84.tar.gz
bugs-60965ea037f9709acd9aa9cc415b423f20345a84.tar.bz2
bugs-60965ea037f9709acd9aa9cc415b423f20345a84.tar.xz
bugs-60965ea037f9709acd9aa9cc415b423f20345a84.zip
Bug 1015173: Groups report all members as being direct members.
r=gerv, a=glob
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Group.pm3
1 files changed, 2 insertions, 1 deletions
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