0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 01:52:15 +02:00

protected xclient variable and added tests

This commit is contained in:
Mehmet Tolga Avcioglu 2023-01-04 14:18:40 +03:00
parent 6384753f6e
commit b278bc3f1b

View File

@ -2010,7 +2010,7 @@ class PHPMailer
*
* @param string $name Attribute name
* @param ?string $value Attribute value
*
*
* @return bool
*/
public function setSMTPXclientAttribute($name, $value)
@ -2020,7 +2020,7 @@ class PHPMailer
}
if (isset($this->SMTPXClient[$name]) && $value === null) {
unset($this->SMTPXClient[$name]);
} else if ($value !== null) {
} elseif ($value !== null) {
$this->SMTPXClient[$name] = $value;
}