From 47257c95d6726df04401983f29b46af0449e2643 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Thu, 5 Jan 2006 15:05:32 +0000 Subject: [PATCH] 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 --- webtools/bugzilla/Bugzilla/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webtools/bugzilla/Bugzilla/User.pm b/webtools/bugzilla/Bugzilla/User.pm index 81694dd70df..19c45cbed9e 100644 --- a/webtools/bugzilla/Bugzilla/User.pm +++ b/webtools/bugzilla/Bugzilla/User.pm @@ -311,7 +311,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;