summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 02:09:43 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-21 02:09:43 +0000
commit342d620aef52798493c7824e642008690e34878c (patch)
tree2981a584512a842dd64656723670ee82bdff5369
parent2ae1d72333c58b19687f2c1d2385a6bb6ef29596 (diff)
fixed eval line in parse_amount
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@243 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xLedgerSMB/Form.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm
index f305690a..a1267fbe 100755
--- a/LedgerSMB/Form.pm
+++ b/LedgerSMB/Form.pm
@@ -489,7 +489,7 @@ sub parse_amount {
my ($self, $myconfig, $amount) = @_;
- eval $amount->isa('Math::BigFloat'); # Amount may not be an object
+ eval{ $amount->isa('Math::BigFloat'); }; # Amount may not be an object
if (!$@ and $amount->isa('Math::BigFloat')){
return $amount;
}