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];