Update after comment

This commit is contained in:
Inovea Conseil 2018-07-05 09:14:36 +02:00 committed by GitHub
parent c4513a755d
commit d53f03b596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}
}
}
}
}