Skip to content

Commit

Permalink
chore: improved PHP 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
winternet-studio committed May 30, 2024
1 parent 5c1f94b commit 3b08d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/input/MultifieldInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function run() {

$content[] = '<tr>';
$content[] = '<td class="mfi-label">'. ($this->encodeLabel ? Html::encode($item['label']) : $item['label']) .'&nbsp;</td>';
if (is_callable($item['type'])) {
if (is_callable(@$item['type'])) {
$content[] = '<td class="mfi-input custom-type">'. call_user_func($item['type'], $fieldName, $fieldValue, array_merge($this->inputOptions, ['id' => $inputID])) .'</td>';
} elseif ($item['type'] == 'dropDownList') {
$content[] = '<td class="mfi-input dropdown-type">'. Html::dropDownList($fieldName, $fieldValue, $item['list'], array_merge($this->inputOptions, ['id' => $inputID])) .'</td>';
Expand Down

0 comments on commit 3b08d8b

Please sign in to comment.