Merge pull request #21145 from bb2a/FIX---php-V8-warning-class-html-form

FIX - php V8 warning class html form
This commit is contained in:
Laurent Destailleur 2022-06-08 15:02:58 +02:00 committed by GitHub
commit 8688ba23b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4977,7 +4977,7 @@ class Form
if (!empty($input['label'])) {
$more .= $input['label'].'</div><div class="tagtd left">';
}
$more .= $this->selectarray($input['name'], $input['values'], $input['default'], $show_empty, $key_in_label, $value_as_key, $moreattr, $translate, $maxlen, $disabled, $sort, $morecss);
$more .= $this->selectarray($input['name'], $input['values'], isset($input['default'])?$input['default']:'', $show_empty, $key_in_label, $value_as_key, $moreattr, $translate, $maxlen, $disabled, $sort, $morecss);
$more .= '</div></div>'."\n";
} elseif ($input['type'] == 'checkbox') {
$more .= '<div class="tagtr">';