diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index 67e3e3d274..2442b72f90 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -6775,7 +6775,7 @@ function api_get_real_ip(){ $ip = trim($_SERVER['REMOTE_ADDR']); if (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { if (preg_match('/,/', $_SERVER['HTTP_X_FORWARDED_FOR'])) { - list($ip1, $ip2) = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); + @list($ip1, $ip2) = @explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); } else { $ip1 = $_SERVER['HTTP_X_FORWARDED_FOR']; }