diff --git a/infolog/inc/class.infolog_merge.inc.php b/infolog/inc/class.infolog_merge.inc.php index dabace9d72..6a206a3e68 100644 --- a/infolog/inc/class.infolog_merge.inc.php +++ b/infolog/inc/class.infolog_merge.inc.php @@ -114,7 +114,7 @@ class infolog_merge extends Api\Storage\Merge $array['#'.$name] = ''; } // Format date cfs per user Api\Preferences - if($field['type'] == 'date' || $field['type'] == 'date-time') + if($array['#'.$name] && ($field['type'] == 'date' || $field['type'] == 'date-time')) { $this->date_fields[] = '#'.$name; $array['#'.$name] = Api\DateTime::to($array['#'.$name], $field['type'] == 'date' ? true : '');