(legacy) fix typo in legacy_traffic_stats.php

This commit is contained in:
Ad Schellevis 2016-01-07 13:02:26 +01:00
parent b991dd8ab2
commit c22f7da626

View File

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