summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Form.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index f1083634..8c9cc51a 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -489,8 +489,7 @@ sub parse_amount {
my ($self, $myconfig, $amount) = @_;
- UNIVERSAL::isa($amount, 'Math::BigFloat'); # Amount may not be an object
- if (!$@ and $amount->isa('Math::BigFloat')){
+ if (!UNIVERSAL::isa($amount, 'Math::BigFloat')){ # Amount may not be an object
return $amount;
}
my $numberformat = $myconfig->{numberformat};