Skip to content

Commit c5cddd9

Browse files
authored
Update EavAttribute.php
1 parent f2c66b6 commit c5cddd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/Plugin/EavAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
434434
if ($this->isOptionForDelete($attribute, $optionId)) {
435435
continue;
436436
}
437-
if ($option[0] === '') {
437+
if (!isset($option[0]) || $option[0] === '') {
438438
return false;
439439
}
440440
}

0 commit comments

Comments
 (0)