summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index 87714011c..946fe8cb1 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -831,9 +831,7 @@ sub in_group_id {
# besides the name of the commenter.
sub groups_with_icon {
my $self = shift;
-
- my @groups = grep { $_->icon_url } @{ $self->direct_group_membership };
- return \@groups;
+ return $self->{groups_with_icon} //= [grep { $_->icon_url } @{ $self->direct_group_membership }];
}
sub get_products_by_permission {