From 059395d1e0c742ff0b806c74228651a58d62cfae Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 10 Dec 2010 22:48:59 +0000 Subject: [PATCH] Implode arrays when not exporting human-friendly values so they don't say 'Array' --- infolog/inc/class.infolog_export_csv.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/infolog/inc/class.infolog_export_csv.inc.php b/infolog/inc/class.infolog_export_csv.inc.php index 8e4a7b47e0..2ab5b1cd3f 100644 --- a/infolog/inc/class.infolog_export_csv.inc.php +++ b/infolog/inc/class.infolog_export_csv.inc.php @@ -69,6 +69,11 @@ class infolog_export_csv implements importexport_iface_export_plugin { if($options['convert']) { importexport_export_csv::convert($record, self::$types, 'infolog'); $this->convert($record); + } else { + // Implode arrays, so they don't say 'Array' + foreach($record->get_record_array() as $key => $value) { + if(is_array($value)) $record->$key = implode(',', $value); + } } $export_object->export_record($record); unset($record);