From 7ad5ee49cf8d9f7bc60de5692fac8bed848210ac Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 21 Mar 2007 00:31:26 +0000 Subject: fixing multiple database bind variable issues in CP.pm git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@966 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/CP.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'LedgerSMB/CP.pm') diff --git a/LedgerSMB/CP.pm b/LedgerSMB/CP.pm index 47e278a4..d95e716c 100755 --- a/LedgerSMB/CP.pm +++ b/LedgerSMB/CP.pm @@ -681,7 +681,7 @@ sub post_payments { FROM chart c JOIN acc_trans a ON (a.chart_id = c.id) WHERE $where - AND a.trans_id = $form->{"id_$i"}|; + AND a.trans_id = ?|; $sth = $dbh->prepare($query); $sth->execute($form->{"id_$i"}); @@ -790,9 +790,9 @@ sub post_payments { # update AR/AP transaction $query = qq| UPDATE $form->{arap} - SET paid = $amount, - datepaid = '$form->{datepaid}' - WHERE id = $form->{"id_$i"}|; + SET paid = ?, + datepaid = ? + WHERE id = ?|; $sth = $dbh->prepare($query); $sth->execute( -- cgit v1.2.3