diff options
author | John Bellone <jb@thunkbrightly.com> | 2011-08-21 17:45:11 +0200 |
---|---|---|
committer | John Bellone <jb@thunkbrightly.com> | 2011-08-21 17:45:11 +0200 |
commit | 16f27b402049dc2ff0cc09faf4885aee944ba639 (patch) | |
tree | 62449c7c2f12e4a178c806382431e0baa8e72a2c /system/core | |
parent | 52c10b68c275248eb7e12ec1d039876cd5f81f11 (diff) |
Changed order
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Input.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Input.php b/system/core/Input.php index 365f779de..df9d2a5b7 100644 --- a/system/core/Input.php +++ b/system/core/Input.php @@ -287,7 +287,7 @@ class CI_Input { $this->ip_address = in_array($_SERVER['REMOTE_ADDR'], $proxies) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; } - elseif ($this->server('REMOTE_ADDR') AND ! $this->server('HTTP_CLIENT_IP')) + elseif (! $this->server('HTTP_CLIENT_IP') AND $this->server('REMOTE_ADDR')) { $this->ip_address = $_SERVER['REMOTE_ADDR']; } |