Implode arrays when not exporting human-friendly values so they don't say 'Array'

This commit is contained in:
Nathan Gray 2010-12-10 22:54:27 +00:00
parent e38dca3436
commit 0df9ee0c6d

View File

@ -60,7 +60,12 @@ class calendar_export_csv implements importexport_iface_export_plugin {
// Standard stuff // Standard stuff
if($options['convert']) { if($options['convert']) {
importexport_export_csv::convert($record, $convert_fields, 'calendar'); 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); $export_object->export_record($record);
} }