summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-21 06:34:50 +0200
committermkanat%bugzilla.org <>2008-08-21 06:34:50 +0200
commit67c886dd7eccb7f3136bb4f433db00905140baa3 (patch)
tree7145e0c4d0503fc7cf5971b375a4c231fc34db44
parente9a2d105417e520a31dfc606d9c68e9dc7a9eab5 (diff)
downloadbugzilla-67c886dd7eccb7f3136bb4f433db00905140baa3.tar.gz
bugzilla-67c886dd7eccb7f3136bb4f433db00905140baa3.tar.xz
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
-rw-r--r--Bugzilla/User.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 760723279..ccee85755 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -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);