]> git.mxchange.org Git - friendica-addons.git/commitdiff
fix errors in mailstream addon
authorArt4 <art4@wlabs.de>
Sat, 30 Nov 2024 19:48:49 +0000 (19:48 +0000)
committerArt4 <art4@wlabs.de>
Sat, 30 Nov 2024 19:48:49 +0000 (19:48 +0000)
mailstream/phpmailer/class.phpmailer.php

index ff3d81e34c3b75f7280e2f490fbbe18d8213e5d8..dcf023615e7aa373e3d6fa8dbfb2c9fbe58d40e4 100644 (file)
@@ -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();