Fix warning

This commit is contained in:
Laurent Destailleur 2021-01-01 20:56:34 +01:00
parent f756f575a3
commit 48e9c28420

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();