Update extrafields.class.php

This commit is contained in:
Laurent Destailleur 2021-05-03 16:16:44 +02:00 committed by GitHub
parent 6e4962bb39
commit 33a20ae9a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1340,8 +1340,7 @@ class ExtraFields
elseif ($type == 'checkbox')
{
$value_arr = $value;
if (!is_array($value))
{
if (!is_array($value)) {
$value_arr = explode(',', $value);
}
$out = $form->multiselectarray($keyprefix.$key.$keysuffix, (empty($param['options']) ?null:$param['options']), $value_arr, '', 0, '', 0, '100%');