summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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