diff --git a/C4/Stats.pm b/C4/Stats.pm index 3159ac3af4..780b47d345 100644 --- a/C4/Stats.pm +++ b/C4/Stats.pm @@ -82,7 +82,7 @@ sub UpdateStats { # FIXME - Use $dbh->do() instead my $sth=$dbh->prepare("Insert into statistics (datetime,branch,type,usercode,value, other,itemnumber,itemtype,borrowernumber) values (now(),?,?,?,?,?,?,?,?)"); - $sth->execute('$branch','$type','$user','$amount','$other','$itemnum','$itemtype','$borrowernumber'); + $sth->execute($branch,$type,$user,$amount,$other,$itemnum,$itemtype,$borrowernumber); $sth->finish; }