Update commonobject.class.php

This commit is contained in:
Norbert Penel 2022-05-20 21:57:02 +02:00 committed by GitHub
parent e77bf4a320
commit 31c39226d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7000,12 +7000,12 @@ abstract class CommonObject
$out = $form->multiselectarray($keyprefix.$key.$keysuffix, (empty($param['options']) ?null:$param['options']), $value_arr, '', 0, '', 0, '100%');
} elseif ($type == 'radio') {
$out = '';
foreach ($param['options'] as $keyopt => $val) {
foreach ($param['options'] as $keyopt => $val2) {
$out .= '<input class="flat '.$morecss.'" type="radio" name="'.$keyprefix.$key.$keysuffix.'" id="'.$keyprefix.$key.$keysuffix.'" '.($moreparam ? $moreparam : '');
$out .= ' value="'.$keyopt.'"';
$out .= ' id="'.$keyprefix.$key.$keysuffix.'_'.$keyopt.'"';
$out .= ($value == $keyopt ? 'checked' : '');
$out .= '/><label for="'.$keyprefix.$key.$keysuffix.'_'.$keyopt.'">'.$val.'</label><br>';
$out .= '/><label for="'.$keyprefix.$key.$keysuffix.'_'.$keyopt.'">'.$val2.'</label><br>';
}
} elseif ($type == 'chkbxlst') {
if (is_array($value)) {