summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-01-06 00:05:32 +0100
committerlpsolit%gmail.com <>2006-01-06 00:05:32 +0100
commit8f5a0bbc0bd8b0d47ea09b5a05befd9864ca0d3b (patch)
treec808bdfb8631b20b883ee8dc5583072f7cd4a6a4
parent00984351106f67e6f6bf47e00224f6915949abf0 (diff)
downloadbugzilla-8f5a0bbc0bd8b0d47ea09b5a05befd9864ca0d3b.tar.gz
bugzilla-8f5a0bbc0bd8b0d47ea09b5a05befd9864ca0d3b.tar.xz
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 <bugzilla-mozilla@bkor.dhs.org> r=LpSolit a=justdave
-rw-r--r--Bugzilla/User.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 81694dd70..19c45cbed 100644
--- a/Bugzilla/User.pm
+++ b/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;