Skip to content
Snippets Groups Projects
Commit e08d0c00 authored by Christel Loftus's avatar Christel Loftus
Browse files

#19 - prevent null values for allowed methods

parent a092e7cc
Branches
Tags
2 merge requests!201.0.41,!19Inability to change payment methods
......@@ -535,7 +535,7 @@ class BobGo extends AbstractCarrierOnline implements \Magento\Shipping\Model\Car
public function getAllowedMethods(): array
{
$allowedMethods = $this->getConfigData('allowed_methods');
if ($allowedMethods === false) {
if ($allowedMethods === false || $allowedMethods === null || trim($allowedMethods) === '') {
return []; // Return an empty array if no allowed methods are configured
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment