diff --git a/app/code/Magento/Customer/Model/Options.php b/app/code/Magento/Customer/Model/Options.php index 7747e309d82a6..6af2dfd6d5b21 100644 --- a/app/code/Magento/Customer/Model/Options.php +++ b/app/code/Magento/Customer/Model/Options.php @@ -94,7 +94,8 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false) $options = explode(';', $options); foreach ($options as $value) { $value = $this->escaper->escapeHtml(trim($value)); - $result[$value] = $value; + if($value != '') + $result[$value] = $value; } if ($isOptional && trim(current($options))) { $result = array_merge([' ' => ' '], $result);