Commit 67c886dd authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 451449: "Can't use undefined value as ARRAY reference" when logging into a new account

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent e9a2d105
......@@ -445,15 +445,15 @@ sub bless_groups {
AND groups.id=user_group_map.group_id)
OR (groups.id = ggm.grantor_id
AND ggm.grant_type = ' . GROUP_BLESS . '
AND ggm.member_id ' . $dbh->sql_in(\@group_ids)
AND ' . $dbh->sql_in('ggm.member_id', \@group_ids)
. ') )';
# If visibilitygroups are used, restrict the set of groups.
if (Bugzilla->params->{'usevisibilitygroups'}) {
return [] if !$self->visible_groups_as_string;
# Users need to see a group in order to bless it.
$query .= " AND groups.id "
. $dbh->sql_in($self->visible_groups_inherited);
$query .= " AND "
. $dbh->sql_in('groups.id', $self->visible_groups_inherited);
}
my $ids = $dbh->selectcol_arrayref($query, undef, $self->id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment