diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-17 13:39:50 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-09-17 13:39:50 +0000 |
| commit | 223b9ed0d69ab9482dbf0125afb73ef6c569aa16 (patch) | |
| tree | 18333212396a1d4349fb60deedf8dcde46fbabb9 /phpBB/includes/functions_messenger.php | |
| parent | 0b0c9544a33b8daee65b8173f2895d43a34c7e69 (diff) | |
| download | forums-223b9ed0d69ab9482dbf0125afb73ef6c569aa16.tar forums-223b9ed0d69ab9482dbf0125afb73ef6c569aa16.tar.gz forums-223b9ed0d69ab9482dbf0125afb73ef6c569aa16.tar.bz2 forums-223b9ed0d69ab9482dbf0125afb73ef6c569aa16.tar.xz forums-223b9ed0d69ab9482dbf0125afb73ef6c569aa16.zip | |
extend r9387 - check for existance of all functions we use...
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10158 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
| -rw-r--r-- | phpBB/includes/functions_messenger.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php index 0d1c215cb1..909609d893 100644 --- a/phpBB/includes/functions_messenger.php +++ b/phpBB/includes/functions_messenger.php @@ -1134,7 +1134,7 @@ class smtp_class global $user; $err_msg = ''; - $local_host = (function_exists('php_uname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : $user->host; + $local_host = (function_exists('php_uname') && function_exists('gethostbyaddr') && function_exists('gethostbyname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : $user->host; // If we are authenticating through pop-before-smtp, we // have to login ones before we get authenticated |
