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

SF.net SVN: ledger-smb:[2231] trunk/LedgerSMB/Template/CSV.pm



Revision: 2231
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2231&view=rev
Author:   einhverfr
Date:     2008-08-05 16:27:36 +0000 (Tue, 05 Aug 2008)

Log Message:
-----------
Correcting more GMP incompatibilities

Modified Paths:
--------------
    trunk/LedgerSMB/Template/CSV.pm

Modified: trunk/LedgerSMB/Template/CSV.pm
===================================================================
--- trunk/LedgerSMB/Template/CSV.pm	2008-08-01 19:59:47 UTC (rev 2230)
+++ trunk/LedgerSMB/Template/CSV.pm	2008-08-05 16:27:36 UTC (rev 2231)
@@ -62,7 +62,8 @@
 		for (@{$rawvars}) {
 			push @{$vars}, preprocess( $_ );
 		}
-	} elsif ( !$type or $type eq 'SCALAR' ) { # Scalar
+	} elsif ( !$type or $type eq 'SCALAR' or $type eq 'Math::BigInt::GMP') { 
+			# Scalars or GMP objects (which are SCALAR refs) --CT
 		if ($type eq 'SCALAR' or $type eq 'Math::BigInt::GMP') {
 			$vars = $$rawvars;
 		} else {


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