]> git.mxchange.org Git - friendica-addons.git/commitdiff
Update mailstream/phpmailer/class.phpmailer.php
authorArtur Weigandt <Art4@users.noreply.github.com>
Thu, 5 Dec 2024 17:23:51 +0000 (18:23 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 12 Dec 2024 21:37:42 +0000 (22:37 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
mailstream/phpmailer/class.phpmailer.php

index dcf023615e7aa373e3d6fa8dbfb2c9fbe58d40e4..1d9df9afc09be370beb64045d0f46a3a05e7c9db 100644 (file)
@@ -3287,7 +3287,7 @@ class PHPMailer
         $result = 'localhost.localdomain';
         if (!empty($this->Hostname)) {
             $result = $this->Hostname;
-        } elseif (array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
+        } elseif (!empty($_SERVER['SERVER_NAME'])) {
             $result = $_SERVER['SERVER_NAME'];
         } elseif (function_exists('gethostname') && gethostname() !== false) {
             $result = gethostname();