From c96fabb8c47320dba55372e4b955fb171310adec Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 31 Aug 2020 15:25:05 +0200 Subject: [PATCH] Bug 17661: Trivial simplification using += operator Signed-off-by: Jonathan Druart --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 3a1f4e560b..5509a5b4cb 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -781,7 +781,7 @@ sub _get_facet_from_result_set { my $facet_value = $term->textContent; $facet_value =~ s/\s*(?{ $facet_value } = ( defined $facets->{$facet_value} ) ? $facets->{ $facet_value } + $term->getAttribute( 'occur' ) : $term->getAttribute( 'occur' ); + $facets->{ $facet_value } += $term->getAttribute( 'occur' ); } return $facets; -- 2.39.5