summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/PostmanContactForm7.php
diff options
context:
space:
mode:
Diffstat (limited to 'Postman/Postman-Mail/PostmanContactForm7.php')
-rw-r--r--Postman/Postman-Mail/PostmanContactForm7.php2
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 == '' ) {