]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1015173: Groups report all members as being direct members.
authorMarc Schumann <wurblzap@gmail.com>
Mon, 26 May 2014 08:02:30 +0000 (10:02 +0200)
committerMarc Schumann <wurblzap@gmail.com>
Mon, 26 May 2014 08:02:30 +0000 (10:02 +0200)
r=gerv, a=glob

Bugzilla/Group.pm

index 58c9ea19d1c7b3ad2bb4c3a072807f612da10698..965fa226f9d537893f828da6dd6606a6847492ff 100644 (file)
@@ -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