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/session.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/session.php')
-rw-r--r-- | phpBB/includes/session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index dcfde14159..d8362d5089 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -182,7 +182,7 @@ class session else { // Set to OS hostname or localhost - $host = (function_exists('php_uname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : 'localhost'; + $host = (function_exists('php_uname') && function_exists('gethostbyaddr') && function_exists('gethostbyname')) ? gethostbyaddr(gethostbyname(php_uname('n'))) : 'localhost'; } } |