Skip to content

Commit 6eff507

Browse files
add a check on is array
1 parent d22f7f1 commit 6eff507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Ui/Component/Listing/AttributeRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected function getOptionArray(array $options)
144144
/** @var \Magento\Customer\Api\Data\OptionInterface $option */
145145
foreach ($options as &$option) {
146146
$value = $option->getValue();
147-
if ($option->getOptions()) {
147+
if (is_array($option->getOptions())) {
148148
$value = $this->getOptionArray($option->getOptions());
149149
}
150150
$option = [

0 commit comments

Comments
 (0)