Fix fatal error with confirmation email sending thru MP API
[MAILPOET-1801]
This commit is contained in:
committed by
M. Shull
parent
65df4327dd
commit
90d369a721
@ -18,6 +18,7 @@ class ConfirmationEmailMailer {
|
||||
|
||||
/** @var WPFunctions */
|
||||
private $wp;
|
||||
|
||||
/** @var SettingsController */
|
||||
private $settings;
|
||||
|
||||
@ -28,7 +29,9 @@ class ConfirmationEmailMailer {
|
||||
if($mailer) {
|
||||
$this->mailer = $mailer;
|
||||
}
|
||||
if(!$wp) {
|
||||
if($wp) {
|
||||
$this->wp = $wp;
|
||||
} else {
|
||||
$this->wp = new WPFunctions;
|
||||
}
|
||||
$this->settings = new SettingsController();
|
||||
|
Reference in New Issue
Block a user