From 39fd76db4fe613342f89500d4745ee3672559bde Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 21 Oct 2006 03:06:46 +0000 Subject: Correcting braindead logic.... git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@246 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'LedgerSMB') 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}; -- cgit v1.2.3