Skip to content

Commit

Permalink
Updated Options.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shikha Mishra authored and mage2pratik committed Feb 15, 2019
1 parent 994348f commit 77c780d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Customer/Model/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
return false;
}
$result = [];
$options = explode(';', $options);
$options = array_filter(explode(';', $options));
foreach ($options as $value) {
$value = $this->escaper->escapeHtml(trim($value));
$result[$value] = $value;
Expand Down

0 comments on commit 77c780d

Please sign in to comment.