Fix variable not defined before using it

(thanks, Scrutenizer)
This commit is contained in:
nathangray 2017-02-01 09:35:24 -07:00
parent 7c86b20614
commit 108498e0cd

View File

@ -108,13 +108,14 @@ class infolog_merge extends Api\Storage\Merge
}
importexport_export_csv::convert($record, $types, 'infolog', $selects);
$array = $record->get_record_array();
if($record->info_contact)
{
$array['info_contact'] = $array['info_link']['title'];
}
// Set any missing custom fields, or the marker will stay
$array = $record->get_record_array();
foreach($this->bo->customfields as $name => $field)
{
if(!$array['#'.$name])