Skip to content

Commit

Permalink
Merge pull request #7529 from ehuelsmann/cleanup/improved-db-error-check
Browse files Browse the repository at this point in the history
Improve error checking on DBI calls
  • Loading branch information
ehuelsmann committed Jul 23, 2023
2 parents 87741d0 + 9f994d9 commit 14ee3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion old/lib/LedgerSMB/Form.pm
Expand Up @@ -1993,7 +1993,7 @@ sub create_links {
WHERE a.id = ? AND c.entity_class =
(select id FROM entity_class
WHERE class ilike ?)|;
$sth = $dbh->prepare($query);
$sth = $dbh->prepare($query) || $self->dberror($query);
$sth->execute( $self->{id}, $self->{vc} ) || $self->dberror($query);

$ref = $sth->fetchrow_hashref('NAME_lc');
Expand Down

0 comments on commit 14ee3a8

Please sign in to comment.