mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 08:01:38 +02:00
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;
|
$uptime = formatUptime($device['uptime'], 'short').'<br />'.$location;
|
||||||
if ($subformat == 'detail') {
|
if ($subformat == 'detail') {
|
||||||
$hostname .= '<br />'.$device['sysName'];
|
$hostname .= '<br />'.$device['sysName'];
|
||||||
|
if (empty($port_count)) {
|
||||||
|
$port_count = 0;
|
||||||
|
}
|
||||||
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 />';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user