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