From d53f03b5968f6c8c611f8e86670bfc0729313541 Mon Sep 17 00:00:00 2001 From: Inovea Conseil Date: Thu, 5 Jul 2018 09:14:36 +0200 Subject: [PATCH] Update after comment --- htdocs/core/tpl/extrafields_list_print_fields.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}