]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 322315: When a user is logged out, $user->can_bless gives: Not an ARRAY reference...
authorlpsolit%gmail.com <>
Thu, 5 Jan 2006 23:02:59 +0000 (23:02 +0000)
committerlpsolit%gmail.com <>
Thu, 5 Jan 2006 23:02:59 +0000 (23:02 +0000)
Bugzilla/User.pm

index 470d577d28d7c6426bfe1604b9a6e8beacdb6b43..df2eb14073765848d1bea0a539cd2798fc05b3d3 100644 (file)
@@ -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;