mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:29:25 +01:00
Implode arrays when not exporting human-friendly values so they don't say 'Array'
This commit is contained in:
parent
f444efbc9a
commit
059395d1e0
@ -69,6 +69,11 @@ class infolog_export_csv implements importexport_iface_export_plugin {
|
|||||||
if($options['convert']) {
|
if($options['convert']) {
|
||||||
importexport_export_csv::convert($record, self::$types, 'infolog');
|
importexport_export_csv::convert($record, self::$types, 'infolog');
|
||||||
$this->convert($record);
|
$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);
|
$export_object->export_record($record);
|
||||||
unset($record);
|
unset($record);
|
||||||
|
Loading…
Reference in New Issue
Block a user