Prevent notices in MailSo\Net\ConnectSettings

This commit is contained in:
the-djmaze 2022-11-06 14:39:19 +01:00
parent 115437fb6a
commit 95ce1b15ef

View file

@ -68,9 +68,9 @@ class ConnectSettings
$object->host = $aSettings['Host']; $object->host = $aSettings['Host'];
$object->port = $aSettings['Port']; $object->port = $aSettings['Port'];
$object->type = $aSettings['Secure']; $object->type = $aSettings['Secure'];
$object->ssl['verify_peer'] = !!$aSettings['VerifySsl']; $object->ssl['verify_peer'] = !empty($aSettings['VerifySsl']);
$object->ssl['verify_peer_name'] = !!$aSettings['VerifySsl']; $object->ssl['verify_peer_name'] = !empty($aSettings['VerifySsl']);
$object->ssl['allow_self_signed'] = !!$aSettings['AllowSelfSigned']; $object->ssl['allow_self_signed'] = !empty($aSettings['AllowSelfSigned']);
if (!empty($aSettings['ClientCert'])) { if (!empty($aSettings['ClientCert'])) {
$object->ssl['local_cert'] = $aSettings['ClientCert']; $object->ssl['local_cert'] = $aSettings['ClientCert'];
} }