Use falsy check as it could be null or false

This commit is contained in:
Marcus Bointon 2025-03-27 15:37:37 +01:00
parent ddebeb0565
commit 2818f3e6a3
No known key found for this signature in database
GPG Key ID: DE31CD6EB646AA24
1 changed files with 1 additions and 1 deletions

View File

@ -2111,7 +2111,7 @@ class PHPMailer
} }
//If we have recipient addresses that need Unicode support, //If we have recipient addresses that need Unicode support,
//but the server doesn't support it, stop here //but the server doesn't support it, stop here
if ($this->UseSMTPUTF8 && $this->smtp->getServerExt('SMTPUTF8') === null) { if ($this->UseSMTPUTF8 && !$this->smtp->getServerExt('SMTPUTF8')) {
throw new Exception($this->lang('no_smtputf8'), self::STOP_CRITICAL); throw new Exception($this->lang('no_smtputf8'), self::STOP_CRITICAL);
} }
//Sender already validated in preSend() //Sender already validated in preSend()