diff options
Diffstat (limited to 'LedgerSMB/IS.pm')
-rwxr-xr-x | LedgerSMB/IS.pm | 2 |
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 (?)|; |