From: lpsolit%gmail.com <> Date: Thu, 5 Jan 2006 23:02:59 +0000 (+0000) Subject: Bug 322315: When a user is logged out, $user->can_bless gives: Not an ARRAY reference... X-Git-Tag: bugzilla-2.20.1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ffd866ceb3ca3a7094bcc8c9d73a4d4cb4f72d0;p=thirdparty%2Fbugzilla.git Bug 322315: When a user is logged out, $user->can_bless gives: Not an ARRAY reference at Bugzilla/User.pm line 643 - Patch by Olav Vitters r=LpSolit a=justdave --- diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm index 470d577d28..df2eb14073 100644 --- a/Bugzilla/User.pm +++ b/Bugzilla/User.pm @@ -305,7 +305,7 @@ sub bless_groups { my $self = shift; return $self->{'bless_groups'} if defined $self->{'bless_groups'}; - return {} unless $self->id; + return [] unless $self->id; my $dbh = Bugzilla->dbh; my $query;