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

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



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

Log Message:
-----------
fixed eval line in parse_amount

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

Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm	2006-10-20 15:53:54 UTC (rev 242)
+++ trunk/LedgerSMB/Form.pm	2006-10-21 02:09:43 UTC (rev 243)
@@ -489,7 +489,7 @@
 
 	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;
 	}


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