Skip to content

Commit

Permalink
Merge pull request #43 from adamk22/dev
Browse files Browse the repository at this point in the history
Undefined Index (spinning wheel but mail was sent)
  • Loading branch information
yehudah authored May 19, 2019
2 parents f61b0f4 + 11e897a commit ca1c75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Postman/Postman-Mail/PostmanContactForm7.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function save_error($contact_form) {
}

public function change_rest_response( $response ) {
if ( $response['status'] == 'mail_failed' ) {
if ( array_key_exists('status', $response) && $response['status'] == 'mail_failed' ) {
$message = $this->result_error ['exception']->getMessage();

if ( ! $message || $message == '' ) {
Expand Down

0 comments on commit ca1c75f

Please sign in to comment.