Fix javascript bug with repeating sensors icon on devices page

This commit is contained in:
Michael Nguyen
2016-04-11 13:36:55 -07:00
parent f1912cca7b
commit 2c8ba538b8

View File

@ -207,6 +207,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
$hostname .= '<br />'.$device['sysName']; $hostname .= '<br />'.$device['sysName'];
if (empty($port_count)) { if (empty($port_count)) {
$port_count = 0; $port_count = 0;
$col_port = '';
} }
if ($port_count) { if ($port_count) {
$col_port = ' <img src="images/icons/port.png" align=absmiddle /> '.$port_count.'<br />'; $col_port = ' <img src="images/icons/port.png" align=absmiddle /> '.$port_count.'<br />';