mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Fix undefined index notice on ppcp_create_order_request_body_data hook.
This commit is contained in:
parent
7df95e02b0
commit
4fd7619665
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class ApiModule implements ModuleInterface {
|
||||||
foreach ( $data['purchase_units'] as $purchase_unit_index => $purchase_unit ) {
|
foreach ( $data['purchase_units'] as $purchase_unit_index => $purchase_unit ) {
|
||||||
foreach ( $purchase_unit['items'] as $item_index => $item ) {
|
foreach ( $purchase_unit['items'] as $item_index => $item ) {
|
||||||
$data['purchase_units'][ $purchase_unit_index ]['items'][ $item_index ]['name'] =
|
$data['purchase_units'][ $purchase_unit_index ]['items'][ $item_index ]['name'] =
|
||||||
apply_filters( 'woocommerce_paypal_payments_cart_line_item_name', $item['name'], $item['cart_item_key'] );
|
apply_filters( 'woocommerce_paypal_payments_cart_line_item_name', $item['name'], $item['cart_item_key'] ?? null );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue