Skip to content

Commit 1e56995

Browse files
kftwmschwemer
authored andcommitted
Update SelectFieldViewHelper.php
1 parent c43dd39 commit 1e56995

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/ViewHelpers/Form/SelectFieldViewHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ protected function getOptionFromOriginalOptionsByValue(string $value): array
181181
*/
182182
protected function isSelectedAlternative(array $option): bool
183183
{
184+
if (empty($option)) {
185+
return false;
186+
}
187+
184188
if (is_array($this->getValueAttribute())) {
185189
return $this->isSelectedAlternativeForArray($option);
186190
}

0 commit comments

Comments
 (0)