[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [245] trunk/LedgerSMB/Form.pm



Revision: 245
          http://svn.sourceforge.net/ledger-smb/?rev=245&view=rev
Author:   einhverfr
Date:     2006-10-20 20:03:32 -0700 (Fri, 20 Oct 2006)

Log Message:
-----------
Moved double-parsing detection to UNIVERSAL::isa()

Modified Paths:
--------------
    trunk/LedgerSMB/Form.pm

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-10-21 02:56:32 UTC (rev 244)
+++ trunk/LedgerSMB/Form.pm	2006-10-21 03:03:32 UTC (rev 245)
@@ -489,7 +489,7 @@
 
 	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;
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.