Bug: "my" variable $form masks earlier declaration in same scope at SL/DBUpgrade2.pm
authorUdo Spallek <info@wissensvermittlung.com>
Thu, 22 Mar 2007 16:15:34 +0000 (16:15 +0000)
committerUdo Spallek <info@wissensvermittlung.com>
Thu, 22 Mar 2007 16:15:34 +0000 (16:15 +0000)
SL/DBUpgrade2.pm

index b63b749..8cde113 100644 (file)
@@ -122,7 +122,7 @@ sub _check_for_loops {
 sub _control_error {
   my ($form, $file_name, $message) = @_;
 
-  my $form = $main::form;
+  $form = $main::form;
   my $locale = $main::locale;
 
   $form->error(sprintf($locale->text("Error in database control file '%s': %s"),