Browse Source

FIX: Incorrect values inserted in database. used '$a' instead of $a

3.0.x
plugz 21 years ago
parent
commit
e1e291d69b
  1. 2
      C4/Stats.pm

2
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;
}

Loading…
Cancel
Save