Replace the stopped sending notice

[MAILPOET-2643]
This commit is contained in:
Pavel Dohnal
2020-04-01 11:32:48 +02:00
committed by Veljko V
parent 97b76031b5
commit 319b7afd05
3 changed files with 11 additions and 9 deletions

View File

@@ -554,10 +554,8 @@ class Menu {
public function checkMailPoetAPIKey(ServicesChecker $checker = null) {
if (self::isOnMailPoetAdminPage()) {
$showNotices = isset($_REQUEST['page'])
&& stripos($_REQUEST['page'], self::MAIN_PAGE_SLUG) === false;
$checker = $checker ?: $this->servicesChecker;
$this->mpApiKeyValid = $checker->isMailPoetAPIKeyValid($showNotices);
$this->mpApiKeyValid = $checker->isMailPoetAPIKeyValid();
}
}