From 655089b162f9beac0fb802f1eaafbe5fabde806b Mon Sep 17 00:00:00 2001 From: Max Rice Date: Mon, 14 Dec 2015 20:15:22 -0500 Subject: [PATCH] Fix checkout result notice --- includes/class-wc-checkout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 8fcffff7e4d..eaca7f582d8 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -643,7 +643,7 @@ class WC_Checkout { $result = $available_gateways[ $this->posted['payment_method'] ]->process_payment( $order_id ); // Redirect to success/confirmation/payment page - if ( 'success' === $result['result'] ) { + if ( isset( $result['result'] ) && 'success' === $result['result'] ) { $result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );