Skip to content

Commit

Permalink
Silent error
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 16, 2016
1 parent 6ca9a4f commit 891d518
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/api.lib.php
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 891d518

Please sign in to comment.