fix IDE warning/error: constructor returning something

This commit is contained in:
ralf 2022-03-29 09:12:02 +03:00
parent 13d1289910
commit 20d3394e2b

View File

@ -75,12 +75,12 @@ class Mailer extends Horde_Mime_Mail
Preferences::setlocale(LC_MESSAGES); Preferences::setlocale(LC_MESSAGES);
parent::__construct(); parent::__construct();
if ($account ==='initbasic') if ($account === 'initbasic')
{ {
$this->_headers = new Horde_Mime_Headers(); $this->_headers = new Horde_Mime_Headers();
$this->clearAllRecipients(); $this->clearAllRecipients();
$this->clearReplyTos(); $this->clearReplyTos();
return $this; return;
} }
if ($account !== false) if ($account !== false)
{ {
@ -1194,4 +1194,4 @@ class Mailer extends Horde_Mime_Mail
} }
return true; return true;
} }
} }