summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/CT.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/CT.pm b/LedgerSMB/CT.pm
index 19c0411d..421444b7 100755
--- a/LedgerSMB/CT.pm
+++ b/LedgerSMB/CT.pm
@@ -250,7 +250,7 @@ sub save_customer {
$sth = $dbh->prepare($query);
$sth->execute($form->{id}) || $form->dberror($query);
- if (! $dbh->selectrow_array($query)) {
+ if (! $sth->fetchrow_array) {
$query = qq|
INSERT INTO customer (id)
VALUES (?)|;