mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Fix potential notice.
This commit is contained in:
parent
6e21d965d0
commit
23c5245381
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ class OrderProcessor {
|
|||
* @return void
|
||||
*/
|
||||
private function restore_order_from_filters( WC_Order $wc_order ): void {
|
||||
if ( is_array( $this->restore_order_data['names'] ) ) {
|
||||
if ( is_array( $this->restore_order_data['names'] ?? null ) ) {
|
||||
foreach ( $this->restore_order_data['names'] as $wc_item_id => $original_name ) {
|
||||
$wc_item = $wc_order->get_item( $wc_item_id, false );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue