summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index 2ff0be22..cf89c9e7 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -479,8 +479,8 @@ sub parse_amount {
my ($self, $myconfig, $amount) = @_;
- if ($amount eq '') {
- return undef;
+ if (($amount eq '') or ($amount eq undef)) {
+ return 0;
}
if (UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object