]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DBUpgrade2.pm
Perl-DB-Upgradescripte refactoring: Bugfix #1
[mfinanz.git] / SL / DBUpgrade2.pm
index 86ae9fdee41ed75548aa7f1ace83ff59b6dcb4e4..d98627c563362906f280ef6958766d0bc16815ad 100644 (file)
@@ -250,13 +250,11 @@ sub process_perl_script {
     file_name => $filename,
     tag       => $version_or_control->{tag},
     dbh       => $dbh,
-    locale    => $::locale,
     myconfig  => \%dbup_myconfig,
   );
 
-  if (1 != $result) {
+  if (1 != ($result // 1)) {
     $dbh->rollback();
-    $dbh->disconnect();
   }
 
   if (!defined($result)) {