From 68ecf2c7fb1568098d959ff041801e2cdf6a0d64 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 15 Dec 2010 23:10:08 +0000 Subject: [PATCH] Implode arrays when not exporting human-friendly values so they don't say 'Array' --- calendar/inc/class.calendar_export_csv.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_export_csv.inc.php b/calendar/inc/class.calendar_export_csv.inc.php index a82c98cb9f..300801a80e 100644 --- a/calendar/inc/class.calendar_export_csv.inc.php +++ b/calendar/inc/class.calendar_export_csv.inc.php @@ -60,7 +60,12 @@ class calendar_export_csv implements importexport_iface_export_plugin { // Standard stuff if($options['convert']) { importexport_export_csv::convert($record, $convert_fields, 'calendar'); - } + } 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); }