lexical in postif fix
authorJan Büren <jan@kivitendo-premium.de>
Tue, 14 Oct 2014 17:23:39 +0000 (19:23 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Tue, 14 Oct 2014 17:23:39 +0000 (19:23 +0200)
falls my deklariert ist, nicht danach mit if prüfen
s.a. chat:
<gorash> grund warum das ekelig ist: das wird intern übersetzt in if (cond) { my $var = ... }

bin/mozilla/oe.pl

index 459c629..7e38f8e 100644 (file)
@@ -564,7 +564,8 @@ sub form_footer {
 
   $TMPL_VAR{ALL_DELIVERY_TERMS} = SL::DB::Manager::DeliveryTerm->get_all_sorted();
 
-  my $tpca_reminder = check_transport_cost_reminder_article_number() if $::instance_conf->get_transport_cost_reminder_article_number_id;
+  my $tpca_reminder;
+  $tpca_reminder = check_transport_cost_reminder_article_number() if $::instance_conf->get_transport_cost_reminder_article_number_id;
   print $form->parse_html_template("oe/form_footer", {
      %TMPL_VAR,
      webdav          => $::instance_conf->get_webdav,