We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8d4789 commit e2fc21fCopy full SHA for e2fc21f
1 file changed
includes/classes/PPMFWC/Gateway/Abstract.php
@@ -491,7 +491,7 @@ public function is_available()
491
}
492
493
494
- if (is_array($arrShippingAllowed) && !in_array('all', $arrShippingAllowed)) {
+ if (is_array($arrShippingAllowed) && !in_array('all', $arrShippingAllowed) && !empty($shippingMethods)) {
495
foreach ($shippingMethods as $shippingMethod) {
496
if (!in_array($shippingMethod, $arrShippingAllowed)) {
497
return false;
0 commit comments