webui: Update device overview to not show hostname when certain conditions match #5984 (#6091)

This commit is contained in:
Neil Lathwood
2017-03-05 03:25:06 +00:00
committed by Tony Murray
parent a9ad228be4
commit ed02e39347
3 changed files with 34 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ echo '<tr>
if (!empty($device['ip'])) {
echo "<tr><td>Resolved IP</td><td>{$device['ip']}</td></tr>";
} elseif ($config['force_ip_to_sysname'] === true) {
} elseif ($config['force_ip_to_sysname'] === true && is_ip($device['hostname']) === true) {
echo "<tr><td>IP Address</td><td>{$device['hostname']}</td></tr>";
}