summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2011-03-21 19:48:43 +1100
committerSavetheinternet <savetheinternet@n0v4.com>2011-03-21 19:48:43 +1100
commitb00bf92e7f3a38c2be416db5e84379d197035f99 (patch)
tree10b1b3991d4a56b43a3dc8c50c1dfaefc84af22d /inc
parent08fac0a0e3e9b47cf63d285a3152762347e2e622 (diff)
Allow php-cli to use functions.php
Diffstat (limited to 'inc')
-rw-r--r--inc/functions.php2
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'];