Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
Code style, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed Feb 14, 2014
1 parent 6af1362 commit f9d229a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -19,6 +19,7 @@
* Improve Chinese translation (Thanks to @PeterDaveHello)
* Add Georgian translation (Thanks to @akalongman)
* Add Greek translation (Thanks to @lenasterg)
* Fix serverHostname on PHP < 5.3

## Version 5.2.7 (September 12th 2013)
* Add Ukranian translation from @Krezalis
Expand Down
6 changes: 3 additions & 3 deletions class.phpmailer.php
Expand Up @@ -2730,10 +2730,10 @@ protected function serverHostname()
$result = $this->Hostname;
} elseif (isset($_SERVER) and array_key_exists('SERVER_NAME', $_SERVER) and !empty($_SERVER['SERVER_NAME'])) {
$result = $_SERVER['SERVER_NAME'];
} elseif (function_exists("gethostname") && gethostname() !== false) {
} elseif (function_exists('gethostname') && gethostname() !== false) {
$result = gethostname();
}elseif (php_uname("n") !== false){
$result = php_uname("n");
} elseif (php_uname('n') !== false) {
$result = php_uname('n');
}
return $result;
}
Expand Down

0 comments on commit f9d229a

Please sign in to comment.