mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Ensure order-pay
exists on query vars
This commit is contained in:
parent
bad4ed3a64
commit
55d57b59ce
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class PayUponInvoiceHelper {
|
|||
*/
|
||||
private function is_valid_currency(): bool {
|
||||
global $wp;
|
||||
$order_id = (int) $wp->query_vars['order-pay'];
|
||||
$order_id = isset( $wp->query_vars['order-pay'] ) ? (int) $wp->query_vars['order-pay'] : 0;
|
||||
if ( 0 === $order_id ) {
|
||||
return 'EUR' === get_woocommerce_currency();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue