From 02538a32dbdba7af56ef4be2fb02a043cf03bc81 Mon Sep 17 00:00:00 2001 From: einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> Date: Sat, 21 Oct 2006 03:03:32 +0000 Subject: Moved double-parsing detection to UNIVERSAL::isa() git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@245 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Form.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LedgerSMB/Form.pm b/LedgerSMB/Form.pm index a1267fbe..f1083634 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 + UNIVERSAL::isa($amount, 'Math::BigFloat'); # Amount may not be an object if (!$@ and $amount->isa('Math::BigFloat')){ return $amount; } -- cgit v1.2.3