From c22f7da626a4e6916d7da742e8e73a4cb9f340e6 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 7 Jan 2016 13:02:26 +0100 Subject: [PATCH] (legacy) fix typo in legacy_traffic_stats.php --- src/www/legacy_traffic_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/www/legacy_traffic_stats.php b/src/www/legacy_traffic_stats.php index d11e4cb3a..bd54f7c3f 100644 --- a/src/www/legacy_traffic_stats.php +++ b/src/www/legacy_traffic_stats.php @@ -72,7 +72,7 @@ if (!does_interface_exist($real_interface)) { if (!empty($_GET['hostipformat'])) { $addrdata = gethostbyaddr($fields[0]); if ($_GET['hostipformat'] == 'hostname' && $addrdata != $fields[0]){ - $addrdata = explode(".", $fields)[0]; + $addrdata = explode(".", $addrdata)[0]; } } else { $addrdata = $fields[0];