Bug 8227 Fix deprecated construct compile time warning in Serials

The perl parser no longer fools itself into sometimes thinking
qw( ... ) is a ( qw( ... )) this adds the required parentheses
for the foreach expression silencing the compile time warning

Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Colin Campbell 2012-06-11 11:32:58 +01:00 committed by Paul Poulain
parent f809e47fd1
commit bcde875b47
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ sub GetSubscriptions {
my @sqlstrings;
my @strings_to_search;
@strings_to_search = map { "$_" } split( / /, $ean );
foreach my $index qw(biblioitems.ean) {
foreach my $index ( qw(biblioitems.ean) ) {
push @bind_params, @strings_to_search;
my $tmpstring = "OR $index = ? " x scalar(@strings_to_search);
$debug && warn "$tmpstring";