summaryrefslogtreecommitdiff
path: root/LedgerSMB/IR.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/IR.pm')
-rwxr-xr-xLedgerSMB/IR.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index 01bb05ca..22fc6fcf 100755
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -101,7 +101,7 @@ sub post_invoice {
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- if ($sth->fetchrow_array($query)) {
+ if ($sth->fetchrow_array) {
$query = qq|
SELECT p.id, p.inventory_accno_id,
p.income_accno_id