X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2e9d34aa27890e304e9e4aadcddec262b76554bb..7bd555b62a7501d750d7989b75b46a40c5e7c1a3:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 130a337ba..cfffd78e2 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -63,10 +63,13 @@ use strict; my $standard_dbh; END { - if ($standard_dbh) { - $standard_dbh->disconnect(); - undef $standard_dbh; - } + disconnect_standard_dbh(); +} + +sub disconnect_standard_dbh { + return unless $standard_dbh; + $standard_dbh->disconnect(); + undef $standard_dbh; } sub _store_value {