Merge pull request #21190 from bb2a/FIX---php-V8-extrafields

FIX - Extrafields checkbox PHP error
This commit is contained in:
Laurent Destailleur 2022-06-12 12:04:19 +02:00 committed by GitHub
commit f052dd4ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2066,7 +2066,7 @@ class ExtraFields
} elseif (in_array($key_type, array('checkbox', 'chkbxlst'))) {
$value_arr = GETPOST("options_".$key, 'array'); // check if an array
if (!empty($value_arr)) {
$value_key = implode($value_arr, ',');
$value_key = implode(',', $value_arr);
} else {
$value_key = '';
}