Skip to content

Commit

Permalink
fix: php8.1 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Feb 13, 2022
1 parent f185c66 commit fc418f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function __construct(
'Content-Type'=>'text/plain; '.
'charset='.Base::instance()->ENCODING
];
$this->host=strtolower((($this->scheme=strtolower($scheme))=='ssl'?
$this->host=strtolower((($this->scheme=strtolower($scheme?:''))=='ssl'?
'ssl':'tcp').'://'.$host);
$this->port=$port;
$this->user=$user;
Expand Down

0 comments on commit fc418f3

Please sign in to comment.