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

#19 - use if empty instead to cater for all 3 checks

parent e08d0c00
No related branches found
No related tags found
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 || $allowedMethods === null || trim($allowedMethods) === '') {
if (empty($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