summaryrefslogtreecommitdiff
path: root/LedgerSMB/CP.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/CP.pm')
-rwxr-xr-xLedgerSMB/CP.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/CP.pm b/LedgerSMB/CP.pm
index b5f0df2d..33d47bcf 100755
--- a/LedgerSMB/CP.pm
+++ b/LedgerSMB/CP.pm
@@ -406,7 +406,7 @@ sub post_payment {
my $sth = $dbh->prepare($query);
$sth->execute($form->{"id_$i"});
- my ($id) = $dbh->selectrow_array($query);
+ my ($id) = $sth->fetchrow_array;
$amount =
$form->round_amount(
@@ -671,7 +671,7 @@ sub post_payments {
$sth = $sbh->prepare($query);
$sth->execute($form->{currency}, $form->{"id_$i"})
|| $form->dberror($query, 'CP.pm', 671);
- my ($exchangerate) = $dbh->selectrow_array($query);
+ my ($exchangerate) = $sth->fetchrow_array;
$exchangerate ||= 1;