FIX: Incorrect values inserted in database. used '$a' instead of $a
This commit is contained in:
parent
47d135f123
commit
e1e291d69b
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue