diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-21 19:48:43 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-21 19:48:43 +1100 |
| commit | b00bf92e7f3a38c2be416db5e84379d197035f99 (patch) | |
| tree | 10b1b3991d4a56b43a3dc8c50c1dfaefc84af22d | |
| parent | 08fac0a0e3e9b47cf63d285a3152762347e2e622 (diff) | |
Allow php-cli to use functions.php
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index 69cd8444..daa2d6d8 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -66,7 +66,7 @@ ini_set('display_errors', 1); } - if($config['ipv6_ipv4']) { + if($config['ipv6_ipv4'] && isset($_SERVER['REMOTE_ADDR'])) { // Keep the original address to properly comply with other board configurations if(!isset($__ip)) $__ip = $_SERVER['REMOTE_ADDR']; |
