Merge pull request #9849 from maxrice/fix-checkout-result-notice

Fix checkout result notice
This commit is contained in:
Claudio Sanches 2015-12-15 00:10:43 -02:00
commit 32ffd8059a
1 changed files with 1 additions and 1 deletions

View File

@ -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 );