From 377ff40990680968fefeeb65b6e6935fcf9fcf35 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 12 Feb 2007 09:42:42 +0000 Subject: [PATCH] Leeren String auch als "nicht gesetzt" deuten. --- SL/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 44d857c86..95cd80e8e 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -653,7 +653,7 @@ sub format_amount { } my $neg = ($amount =~ s/-//); - if (defined($places)) { + if (defined($places) && ($places ne '')) { if ($places < 0) { $amount *= 1; $places *= -1; -- 2.20.1