We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68d2137 commit 529c46fCopy full SHA for 529c46f
app/code/Magento/Shipping/Model/Config/Source/Allmethods.php
@@ -56,6 +56,11 @@ public function toOptionArray($isActiveOnlyFlag = false)
56
);
57
$methods[$carrierCode] = ['label' => $carrierTitle, 'value' => []];
58
foreach ($carrierMethods as $methodCode => $methodTitle) {
59
+
60
+ /** Check it $carrierMethods array was well formed */
61
+ if (!$methodCode) {
62
+ continue;
63
+ }
64
$methods[$carrierCode]['value'][] = [
65
'value' => $carrierCode . '_' . $methodCode,
66
'label' => '[' . $carrierCode . '] ' . $methodTitle,
0 commit comments