diff --git a/C4/Search.pm b/C4/Search.pm index 8f3410f464..885e39c238 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1016,9 +1016,9 @@ sub buildQuery { my $stopwords_removed; # flag to determine if stopwords have been removed my $cclq; - my $indexes = getIndexes(); + my $cclindexes = getIndexes(); if( $query !~ /\s*ccl=/ ){ - for my $index (@$indexes){ + for my $index (@$cclindexes){ if($query =~ /($index)(,?\w)*:/){ $cclq = 1; }