Fix possible null param to explode, fixes #2760
This commit is contained in:
parent
65661bcf15
commit
21768617e2
|
|
@ -2101,6 +2101,9 @@ class PHPMailer
|
|||
$this->smtp->setDebugLevel($this->SMTPDebug);
|
||||
$this->smtp->setDebugOutput($this->Debugoutput);
|
||||
$this->smtp->setVerp($this->do_verp);
|
||||
if ($this->Host === null) {
|
||||
$this->Host = 'localhost';
|
||||
}
|
||||
$hosts = explode(';', $this->Host);
|
||||
$lastexception = null;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue