Merge pull request #1640 from laf/issue-1637

Initialises $port_count if empty
This commit is contained in:
Daniel Preussker 2015-08-07 09:28:34 +00:00
commit c935759038

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 />';
}