From 3188a86eeef265ae2ce14858fab0b835baf3da19 Mon Sep 17 00:00:00 2001 From: laf Date: Fri, 7 Aug 2015 08:24:53 +0000 Subject: [PATCH] Initialises $port_count if empty --- html/includes/table/devices.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/html/includes/table/devices.inc.php b/html/includes/table/devices.inc.php index 55f09d9f5..3cd85fee1 100644 --- a/html/includes/table/devices.inc.php +++ b/html/includes/table/devices.inc.php @@ -206,6 +206,9 @@ foreach (dbFetchRows($sql, $param) as $device) { $uptime = formatUptime($device['uptime'], 'short').'
'.$location; if ($subformat == 'detail') { $hostname .= '
'.$device['sysName']; + if (empty($port_count)) { + $port_count = 0; + } if ($port_count) { $col_port = ' '.$port_count.'
'; }