summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2008-03-23 19:44:48 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2008-03-23 19:44:48 +0000
commit2d996691358d2152fe6c847b9adb4918f7001763 (patch)
tree437e86c351cb5123d7dbc031ff7d8d80227b57cb /LedgerSMB
parenta5d89741335272cb25d5ee236228b570e7144801 (diff)
Get _parse_array to work with DBD::Pg 2.3
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2114 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB')
-rw-r--r--LedgerSMB/DBObject.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/LedgerSMB/DBObject.pm b/LedgerSMB/DBObject.pm
index 6a44fde8..00c94473 100644
--- a/LedgerSMB/DBObject.pm
+++ b/LedgerSMB/DBObject.pm
@@ -248,6 +248,8 @@ sub run_custom_queries {
sub _parse_array {
my ($self, $value) = @_;
+ return @$value if ref $value eq 'ARRAY';
+
my $next;
my $separator;
my @return_array;