|
@@ -243,7 +243,7 @@ class Lakala
|
|
|
|
|
|
|
|
public function getClientIp()
|
|
public function getClientIp()
|
|
|
{
|
|
{
|
|
|
- if ($_SERVER['REMOTE_ADDR']) {
|
|
|
|
|
|
|
+ if (isset($_SERVER['REMOTE_ADDR'])) {
|
|
|
$cip = $_SERVER['REMOTE_ADDR'];
|
|
$cip = $_SERVER['REMOTE_ADDR'];
|
|
|
} elseif (getenv("REMOTE_ADDR")) {
|
|
} elseif (getenv("REMOTE_ADDR")) {
|
|
|
$cip = getenv("REMOTE_ADDR");
|
|
$cip = getenv("REMOTE_ADDR");
|