Teilung durch 0 vermeiden.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 5 Mar 2007 14:41:33 +0000 (14:41 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 5 Mar 2007 14:41:33 +0000 (14:41 +0000)
bin/mozilla/ir.pl

index 78a0333..63325ca 100644 (file)
@@ -881,7 +881,7 @@ sub update {
   }
 
   $i            = $form->{rowcount};
-  $exchangerate = ($form->{exchangerate}) ? $form->{exchangerate} : 1;
+  $exchangerate = ($form->{exchangerate} * 1) ? $form->{exchangerate} * 1 : 1;
 
   if (   ($form->{"partnumber_$i"} eq "")
       && ($form->{"description_$i"} eq "")