From e1e291d69bca37e7bf8ed29b2ab410697a597306 Mon Sep 17 00:00:00 2001 From: plugz Date: Fri, 20 Jun 2003 12:34:48 +0000 Subject: [PATCH] FIX: Incorrect values inserted in database. used '$a' instead of $a --- C4/Stats.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1