Strictfehler in cp.pl korrigiert.
authorSven Schöling <s.schoeling@linet-services.de>
Mon, 5 Dec 2011 11:13:10 +0000 (12:13 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 5 Dec 2011 11:13:10 +0000 (12:13 +0100)
bin/mozilla/cp.pl

index c6910ba..ee49181 100644 (file)
@@ -442,10 +442,10 @@ sub check_form {
     if ($form->parse_amount(\%myconfig, $form->{"paid_$i"})) {
       $amount -= $form->parse_amount(\%myconfig, $form->{"paid_$i"});
 
-      push(@{ $form->{paid} },      $form->{"paid_$i"});
-      push(@{ $form->{due} },       $form->{"due_$i"});
-      push(@{ $form->{invnumber} }, $form->{"invnumber_$i"});
-      push(@{ $form->{invdate} },   $form->{"transdate_$i"});
+      push(@{ $form->{paid}      ||= [] }, $form->{"paid_$i"});
+      push(@{ $form->{due}       ||= [] }, $form->{"due_$i"});
+      push(@{ $form->{invnumber} ||= [] }, $form->{"invnumber_$i"});
+      push(@{ $form->{invdate}   ||= [] }, $form->{"transdate_$i"});
     }
   }