@@ -425,11 +425,11 @@ |
||
425 | 425 | // Make sure email should not be empty. |
426 | 426 | give_set_error( 'email_empty', esc_html__( 'The email you entered is empty.', 'give' ) ); |
427 | 427 | |
428 | - }else if ( ! is_email( $email ) ){ |
|
428 | + } else if ( ! is_email( $email ) ){ |
|
429 | 429 | // Make sure email should be valid. |
430 | 430 | give_set_error( 'email_not_valid', esc_html__( 'The email you entered is not valid. Please use another', 'give' ) ); |
431 | 431 | |
432 | - }else if ( $email != $old_user_data->user_email ) { |
|
432 | + } else if ( $email != $old_user_data->user_email ) { |
|
433 | 433 | // Make sure the new email doesn't belong to another user |
434 | 434 | if ( email_exists( $email ) ) { |
435 | 435 | give_set_error( 'email_exists', esc_html__( 'The email you entered belongs to another user. Please use another.', 'give' ) ); |