Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Webklex committed Jul 23, 2018
2 parents 373e4cc + 288c972 commit dba1b3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IMAP/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,8 +443,8 @@ protected function getAddress() {
if (!$this->validate_cert) {
$address .= '/novalidate-cert';
}
if ($this->encryption == 'ssl') {
$address .= '/ssl';
if (in_array($this->encryption,['tls','ssl'])) {
$address .= '/'.$this->encryption;
}
$address .= '}';

Expand Down

0 comments on commit dba1b3e

Please sign in to comment.