Commit c22f7da6 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix typo in legacy_traffic_stats.php

parent b991dd8a
...@@ -72,7 +72,7 @@ if (!does_interface_exist($real_interface)) { ...@@ -72,7 +72,7 @@ if (!does_interface_exist($real_interface)) {
if (!empty($_GET['hostipformat'])) { if (!empty($_GET['hostipformat'])) {
$addrdata = gethostbyaddr($fields[0]); $addrdata = gethostbyaddr($fields[0]);
if ($_GET['hostipformat'] == 'hostname' && $addrdata != $fields[0]){ if ($_GET['hostipformat'] == 'hostname' && $addrdata != $fields[0]){
$addrdata = explode(".", $fields)[0]; $addrdata = explode(".", $addrdata)[0];
} }
} else { } else {
$addrdata = $fields[0]; $addrdata = $fields[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment