Fix warning

This commit is contained in:
Laurent Destailleur 2021-01-01 20:56:34 +01:00
parent d2345ea96c
commit ede38dec30

View File

@ -486,9 +486,11 @@ function createThirdParty($authentication, $thirdparty)
foreach ($extrafields->attributes[$elementtype]['label'] as $key => $label) foreach ($extrafields->attributes[$elementtype]['label'] as $key => $label)
{ {
$key = 'options_'.$key; $key = 'options_'.$key;
if (isset($thirdparty[$key])) {
$newobject->array_options[$key] = $thirdparty[$key]; $newobject->array_options[$key] = $thirdparty[$key];
} }
} }
}
$db->begin(); $db->begin();