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

SF.net SVN: ledger-smb: [2114] trunk/LedgerSMB/DBObject.pm



Revision: 2114
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2114&view=rev
Author:   tetragon
Date:     2008-03-23 12:44:48 -0700 (Sun, 23 Mar 2008)

Log Message:
-----------
Get _parse_array to work with DBD::Pg 2.3

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

Modified: trunk/LedgerSMB/DBObject.pm
===================================================================
--- trunk/LedgerSMB/DBObject.pm	2008-03-21 21:28:39 UTC (rev 2113)
+++ trunk/LedgerSMB/DBObject.pm	2008-03-23 19:44:48 UTC (rev 2114)
@@ -248,6 +248,8 @@
 
 sub _parse_array {
     my ($self, $value) = @_;
+    return @$value if ref $value eq 'ARRAY';
+
     my $next;
     my $separator;
     my @return_array;


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