Skip to content

Commit

Permalink
PHP Fatal Error, ref #762
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jun 8, 2017
1 parent da0c0c9 commit 2a22cbc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ public function buy_now_button() {
}

public function angelleye_paypal_express_checkout_redirect_to_paypal($data, $errors) {
foreach ( $errors->get_error_messages() as $message ) {
wc_add_notice( $message, 'error' );
if( !empty($errors) ) {
foreach ( $errors->get_error_messages() as $message ) {
wc_add_notice( $message, 'error' );
}
}
if ( empty( $posted_data['woocommerce_checkout_update_totals'] ) && 0 === wc_notice_count( 'error' ) ) {
try {
Expand Down

0 comments on commit 2a22cbc

Please sign in to comment.