Skip to content

Commit

Permalink
Prevent notices in MailSo\Net\ConnectSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Nov 6, 2022
1 parent 115437f commit 95ce1b1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public static function fromArray(array $aSettings) : self
$object->host = $aSettings['Host'];
$object->port = $aSettings['Port'];
$object->type = $aSettings['Secure'];
$object->ssl['verify_peer'] = !!$aSettings['VerifySsl'];
$object->ssl['verify_peer_name'] = !!$aSettings['VerifySsl'];
$object->ssl['allow_self_signed'] = !!$aSettings['AllowSelfSigned'];
$object->ssl['verify_peer'] = !empty($aSettings['VerifySsl']);
$object->ssl['verify_peer_name'] = !empty($aSettings['VerifySsl']);
$object->ssl['allow_self_signed'] = !empty($aSettings['AllowSelfSigned']);
if (!empty($aSettings['ClientCert'])) {
$object->ssl['local_cert'] = $aSettings['ClientCert'];
}
Expand Down

0 comments on commit 95ce1b1

Please sign in to comment.