Avoid warning if there are no explode settings

This commit is contained in:
Nathan Gray 2013-01-23 17:24:45 +00:00
parent dc5ed0acac
commit 36e0b275c3

View File

@ -330,6 +330,10 @@ class addressbook_export_contacts_csv implements importexport_iface_export_plugi
$record->tel_prefer = $record->$field;
}
if(!is_array($options['explode_multiselects']))
{
return;
}
foreach((array)$options['explode_multiselects'] as $field => $explode_settings) {
if(!is_array($record->$field)) $record->$field = explode(',', $record->$field);
foreach((array)$explode_settings['values'] as $value => $settings) {