mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:50:20 +00:00
fix errors in mailstream addon
This commit is contained in:
parent
984e7c5e5d
commit
6b1b043dd8
1 changed files with 1 additions and 1 deletions
|
@ -3287,7 +3287,7 @@ class PHPMailer
|
|||
$result = 'localhost.localdomain';
|
||||
if (!empty($this->Hostname)) {
|
||||
$result = $this->Hostname;
|
||||
} elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
|
||||
} elseif (array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
|
||||
$result = $_SERVER['SERVER_NAME'];
|
||||
} elseif (function_exists('gethostname') && gethostname() !== false) {
|
||||
$result = gethostname();
|
||||
|
|
Loading…
Reference in a new issue