webui: Updated remaining display options where we do not show sysName if hostname is IP (#6585)

* webui: Updated remaining display options where we do not show sysName if hostname is IP

* renamed function + simplified
This commit is contained in:
Neil Lathwood
2017-05-05 12:25:58 +01:00
committed by Tony Murray
parent 1135bb9146
commit 34c35f3627
17 changed files with 53 additions and 53 deletions

View File

@@ -23,7 +23,7 @@ if ($_SESSION['userlevel'] < '10') {
}
foreach (dbFetchRows('SELECT * FROM `devices` ORDER BY `hostname`') as $device) {
$devicesform .= "<option value='".$device['device_id']."'>".$device['hostname'].'</option>';
$devicesform .= "<option value='".$device['device_id']."'>".format_hostname($device).'</option>';
}
if ($updated) {