diff --git a/C4/Record.pm b/C4/Record.pm index 44e1b7d6a7..644c3b61ca 100644 --- a/C4/Record.pm +++ b/C4/Record.pm @@ -878,7 +878,7 @@ sub marc2cites { if($author =~ /([^,]+),?(.*)/) { my %a; ($a{'surname'} = $1) =~ s/$re_clean//g; - $a{'forenames'} = [map {s/$re_clean//g;$_} split ' ', $2]; + $a{'forenames'} = [map {my $t=$_;$t=~s/$re_clean//g;$t} split ' ', $2]; push(@authors, \%a); } }