summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/AM.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index b3050c05..6deefa72 100755
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -258,7 +258,7 @@ sub delete_account {
WHERE inventory_accno_id = ?|;
$sth = $dbh->prepare($query);
- $dbh->execute($form->{id}) || $form->dberror($query);
+ $sth->execute($form->{id}) || $form->dberror($query);
for (qw(income_accno_id expense_accno_id)){
$query = qq|