diff --git a/C4/Stats.pm b/C4/Stats.pm index 2ad685cbe6..86096bffdd 100644 --- a/C4/Stats.pm +++ b/C4/Stats.pm @@ -120,7 +120,7 @@ sub UpdateStats { my $type = $params->{type}; my $borrowernumber = exists $params->{borrowernumber} ? $params->{borrowernumber} : ''; my $itemnumber = exists $params->{itemnumber} ? $params->{itemnumber} : ''; - my $amount = exists $params->{amount} ? $params->{amount} : ''; + my $amount = exists $params->{amount} ? $params->{amount} : 0; my $other = exists $params->{other} ? $params->{other} : ''; my $itemtype = exists $params->{itemtype} ? $params->{itemtype} : ''; my $location = exists $params->{location} ? $params->{location} : undef;