mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Implode arrays when not exporting human-friendly values so they don't say 'Array'
This commit is contained in:
parent
bbd874dc05
commit
f444efbc9a
@ -181,7 +181,13 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
|
|||||||
$this->convert($contact, $options);
|
$this->convert($contact, $options);
|
||||||
if($options['convert']) {
|
if($options['convert']) {
|
||||||
importexport_export_csv::convert($contact, self::$types, 'addressbook');
|
importexport_export_csv::convert($contact, self::$types, 'addressbook');
|
||||||
}
|
} else {
|
||||||
|
// Implode arrays, so they don't say 'Array'
|
||||||
|
foreach($contact->get_record_array() as $key => $value) {
|
||||||
|
if(is_array($value)) $contact->$key = implode(',', $value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$export_object->export_record($contact);
|
$export_object->export_record($contact);
|
||||||
unset($contact);
|
unset($contact);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user