* Calendar - Fix exporting CSV from search results exported owner as participants

This commit is contained in:
nathangray 2018-03-02 11:13:18 -07:00
parent 3e7ecbe692
commit d76f467f94

View File

@ -147,7 +147,15 @@ class calendar_export_csv implements importexport_iface_export_plugin {
// Add in participants
if($options['mapping']['participants'])
{
$event['participants'] = implode(", ",$this->bo->participants($event,true));
if(is_array($event['participants']))
{
$event['participants'] = implode(", ",$this->bo->participants($event,true));
}
else
{
// Getting results from list already has participants formatted
$event['participants'] = str_replace("\n", ' ', $event['participants']);
}
}
if (is_array($event))
{