Add fix for false being saved as a string
[MAILPOET-2991]
This commit is contained in:
@ -122,7 +122,8 @@ class ServicesChecker {
|
||||
public function isMailPoetAPIKeyPendingApproval(): bool {
|
||||
$mssActive = Bridge::isMPSendingServiceEnabled();
|
||||
$mssKeyValid = $this->isMailPoetAPIKeyValid();
|
||||
$mssKeyPendingApproval = $this->settings->get('mta.mailpoet_api_key_state.data.is_approved') === false;
|
||||
$isApproved = $this->settings->get('mta.mailpoet_api_key_state.data.is_approved');
|
||||
$mssKeyPendingApproval = $isApproved === false || $isApproved === 'false'; // API unfortunately saves this as a string
|
||||
return $mssActive && $mssKeyValid && $mssKeyPendingApproval;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user