summaryrefslogtreecommitdiff
path: root/LedgerSMB/CT.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/CT.pm')
-rwxr-xr-xLedgerSMB/CT.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/CT.pm b/LedgerSMB/CT.pm
index 421444b7..62cc45ae 100755
--- a/LedgerSMB/CT.pm
+++ b/LedgerSMB/CT.pm
@@ -427,7 +427,7 @@ sub save_vendor {
$sth = $dbh->prepare($query);
$sth->execute($form->{id}) || $form->dberror($query);
- if (! $dbh->selectrow_array($query)) {
+ if (! $sth->fetchrow_array) {
$query = qq|INSERT INTO vendor (id)
VALUES (?)|;