Fix CI warning

This commit is contained in:
ldestailleur 2025-08-05 15:28:13 +02:00
parent 969f0315df
commit 982850b160

View file

@ -272,9 +272,7 @@ class AssetDepreciationOptions extends CommonObject
} elseif ($field_info['type'] == 'boolean') {
$value = ((GETPOST($html_name) == '1' || GETPOST($html_name) == 'on') ? 1 : 0);
} elseif ($field_info['type'] == 'reference') {
// todo to check
$tmparraykey = array(); //array_keys($object->param_list);
$value = $tmparraykey[GETPOST($html_name)] . ',' . GETPOST($html_name . '2');
$value = GETPOST($html_name) . ',' . GETPOST($html_name . '2');
} else {
if ($field_key == 'lang') {
$value = GETPOST($html_name, 'aZ09') ? GETPOST($html_name, 'aZ09') : "";