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

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



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

Log Message:
-----------
Correcting braindead logic....

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

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


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