Skip to content

Commit 8ff4aa5

Browse files
author
Shikha Mishra
authored
Updated Options.php
1 parent 664a673 commit 8ff4aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private function prepareNamePrefixSuffixOptions($options, $isOptional = false)
9191
return false;
9292
}
9393
$result = [];
94-
$options = explode(';', $options);
94+
$options = array_filter(explode(';', $options));
9595
foreach ($options as $value) {
9696
$value = $this->escaper->escapeHtml(trim($value));
9797
$result[$value] = $value;

0 commit comments

Comments
 (0)