From c841eb4f1f375e1a66144b61ef82be1c9edc687d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 22 Mar 2016 13:02:43 +0100 Subject: [PATCH] Form::round_amount: nicht initialisierte Variable $places --- SL/Form.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Form.pm b/SL/Form.pm index cc9881413..1f380b7cf 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -951,6 +951,8 @@ sub round_amount { return 0 if !defined $amount; + $places //= 0; + if ($adjust) { my $precision = $::instance_conf->get_precision || 0.01; return $self->round_amount( $self->round_amount($amount / $precision, 0) * $precision, $places); -- 2.20.1