X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/40bf406fe82573ddfecf19284d703af83476d90d..92483c539c55b85c3435de918fd6baca2d236c74:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index aaf2d5e6e..c2ed2b5e3 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -46,7 +46,7 @@ sub post_transaction { $main::lxdebug->enter_sub(); my ($self, $myconfig, $form, $provided_dbh, $payments_only) = @_; - + my $rc = 0; # return code auf false setzen # connect to database my $dbh = $provided_dbh ? $provided_dbh : $form->dbconnect_noauto($myconfig); @@ -356,12 +356,13 @@ sub post_transaction { IO->set_datepaid(table => 'ap', id => $form->{id}, dbh => $dbh); - my $rc = 1; if (!$provided_dbh) { $dbh->commit(); $dbh->disconnect(); } + $rc = 1; # Den return-code auf true setzen, aber nur falls beim commit alles i.O. ist + $main::lxdebug->leave_sub(); return $rc;