Skip to content

Commit

Permalink
Fix usage of str_contains function (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalskladanowski authored Nov 4, 2021
1 parent 50944c4 commit 31acf26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/includes/class-wc-pay-by-paynow-pl-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ public static function is_paynow_order( $order ) {
} else {
$paymentMethod = $order->get_payment_method();
}

return str_contains( $paymentMethod, WC_PAY_BY_PAYNOW_PL_PLUGIN_PREFIX );
return strpos( $paymentMethod, WC_PAY_BY_PAYNOW_PL_PLUGIN_PREFIX ) !== false;
}
}

0 comments on commit 31acf26

Please sign in to comment.