Skip to content

Commit c575bd8

Browse files
committed
Skip is_scalar check for null values when imploding a multiline address attribute.
1 parent db4f897 commit c575bd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/Model/Address/AbstractAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected function _implodeArrayValues($value)
331331

332332
$isScalar = true;
333333
foreach ($value as $val) {
334-
if (!is_scalar($val)) {
334+
if ($val !== null && !is_scalar($val)) {
335335
$isScalar = false;
336336
break;
337337
}

0 commit comments

Comments
 (0)