Initialises $port_count if empty

This commit is contained in:
laf
2015-08-07 08:24:53 +00:00
parent 5b1c2c1d0b
commit 3188a86eee

View File

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