Skip to content

Commit bc8877a

Browse files
Corefixihor-sviziev
authored andcommitted
Update EavAttribute.php
(cherry picked from commit c5cddd9)
1 parent 2b46c8a commit bc8877a

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
@@ -430,7 +430,7 @@ protected function isOptionsValid(array $options, Attribute $attribute)
430430
if ($this->isOptionForDelete($attribute, $optionId)) {
431431
continue;
432432
}
433-
if ($option[0] === '') {
433+
if (!isset($option[0]) || $option[0] === '') {
434434
return false;
435435
}
436436
}

0 commit comments

Comments
 (0)