From a79b60b17a3a2cf4ef3024b71eeb622984837bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Thu, 21 Feb 2019 14:58:40 +0100 Subject: [PATCH] Check if key exists [MAILPOET-1787] --- lib/Config/ServicesChecker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Config/ServicesChecker.php b/lib/Config/ServicesChecker.php index 592bb318d5..2af6e6e241 100644 --- a/lib/Config/ServicesChecker.php +++ b/lib/Config/ServicesChecker.php @@ -120,7 +120,7 @@ class ServicesChecker { function isFromEmailAuthorized($display_error_notice = true) { $mta_log_error = $this->settings->get('mta_log.error', []); - if ($mta_log_error && $mta_log_error['operation'] === MailerError::OPERATION_AUTHORIZATION) { + if (isset($mta_log_error['operation']) && $mta_log_error['operation'] === MailerError::OPERATION_AUTHORIZATION) { if ($display_error_notice) { WPNotice::displayError($mta_log_error['error_message'], 'js-error-unauthorized-email', '', false, false); }