From b00bf92e7f3a38c2be416db5e84379d197035f99 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Mon, 21 Mar 2011 19:48:43 +1100 Subject: [PATCH] Allow php-cli to use functions.php --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];