From 460ce06ca1d2b87148083f516cacfa040e59b271 Mon Sep 17 00:00:00 2001 From: netniV Date: Mon, 10 Feb 2020 01:04:48 +0000 Subject: [PATCH] Fix minor QA issue --- lib/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.php b/lib/functions.php index bd1be34b1c..2d966bd76e 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -5352,7 +5352,7 @@ function get_client_addr($client_addr = false) { $client_addr = false; foreach ($http_addr_headers as $header) { if (!empty($_SERVER[$header])) { - $header_ips = explode(',', $header_ips); + $header_ips = explode(',', $_SERVER[$header]); foreach ($header_ips as $header_ip) { if (!empty($header_ip)) { if (!filter_var($header_ip, FILTER_VALIDATE_IP)) {