mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1640 from laf/issue-1637
Initialises $port_count if empty
This commit is contained in:
@ -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 />';
|
||||
}
|
||||
|
Reference in New Issue
Block a user