Skip to content

Commit f5d692f

Browse files
authored
fix iterate on null
1 parent aa272e6 commit f5d692f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Shipping/Model/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getActiveCarriers($store = null)
8989
public function getAllCarriers($store = null)
9090
{
9191
$carriers = [];
92-
$config = $this->_scopeConfig->getValue('carriers', \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store);
92+
$config = $this->_scopeConfig->getValue('carriers', \Magento\Store\Model\ScopeInterface::SCOPE_STORE, $store) ?: [];
9393
foreach (array_keys($config) as $carrierCode) {
9494
$model = $this->_carrierFactory->create($carrierCode, $store);
9595
if ($model) {

0 commit comments

Comments
 (0)