We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0b09ed9 + ff5cfe7 commit d2201d7Copy full SHA for d2201d7
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