diff --git a/htdocs/core/tpl/extrafields_list_print_fields.tpl.php b/htdocs/core/tpl/extrafields_list_print_fields.tpl.php index 5cf6c827b49..e77d0ee0eaf 100644 --- a/htdocs/core/tpl/extrafields_list_print_fields.tpl.php +++ b/htdocs/core/tpl/extrafields_list_print_fields.tpl.php @@ -58,14 +58,14 @@ else // Old method if (in_array($extrafields->attribute_type[$key], array('date', 'datetime', 'timestamp'))) { $value = $db->jdate($obj->$tmpkey); - if(is_a($obj, "Dolresource")){ + if (is_array($obj->array_options) && isset($obj->array_options[$tmpkey])){ $value = $db->jdate($obj->array_options[$tmpkey]); } } else { $value = $obj->$tmpkey; - if(is_a($obj, "Dolresource")){ + if (is_array($obj->array_options) && isset($obj->array_options[$tmpkey])){ $value = $obj->array_options[$tmpkey]; } } @@ -80,4 +80,4 @@ else // Old method } } } -} \ No newline at end of file +}