Skip to content

Commit 4d338c7

Browse files
author
Oleksandr Gorkun
committed
MC-19145: [CLOUD] Internal error after DHL was configured
1 parent fa973d8 commit 4d338c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Dhl/Model/Carrier.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,10 @@ protected function _getAllItems()
825825
$fullItems[] = array_fill(0, $qty, $this->_getWeight($itemWeight));
826826
}
827827
}
828-
$fullItems = array_merge(...$fullItems);
829-
sort($fullItems);
828+
if ($fullItems) {
829+
$fullItems = array_merge(...$fullItems);
830+
sort($fullItems);
831+
}
830832

831833
return $fullItems;
832834
}

0 commit comments

Comments
 (0)