diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-05-20 05:21:18 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2019-05-20 05:21:18 +0000 |
commit | efd7b4d8d0d58f92e8080ffe2da669bb451b622b (patch) | |
tree | 35cb7ed64c1c7baa3c0c8045c68dc2d01fbb4b51 /Postman/Postman-Mail/PostmanContactForm7.php | |
parent | 7b06a0232e4dcb4be4a2b276f15f4a90903918b5 (diff) | |
download | Post-SMTP-efd7b4d8d0d58f92e8080ffe2da669bb451b622b.zip |
= 2.0.2 - 2019-05-19
* Fixed: Sendgrid code fix.
* Fixed: Default method (nothing configured) will use the default mail on the server and not SMTP.
Diffstat (limited to 'Postman/Postman-Mail/PostmanContactForm7.php')
-rw-r--r-- | Postman/Postman-Mail/PostmanContactForm7.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Postman/Postman-Mail/PostmanContactForm7.php b/Postman/Postman-Mail/PostmanContactForm7.php index 64f4f5f..40fd698 100644 --- a/Postman/Postman-Mail/PostmanContactForm7.php +++ b/Postman/Postman-Mail/PostmanContactForm7.php @@ -13,7 +13,7 @@ class Postsmtp_ContactForm7 { } 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 == '' ) { |