summaryrefslogtreecommitdiff
path: root/LedgerSMB/IS.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/IS.pm')
-rwxr-xr-xLedgerSMB/IS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index c14bc920..2796d5ba 100755
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -840,7 +840,7 @@ sub post_invoice {
$sth = $dbh->prepare($query);
$sth->execute($form->{id});
- if ($dbh->selectrow_array($query)) {
+ if ($sth->fetchrow_array) {
&reverse_invoice($dbh, $form);
} else {
$query = qq|INSERT INTO ar (id) VALUES (?)|;