diff --git a/html/includes/table/devices.inc.php b/html/includes/table/devices.inc.php
index 55084b97e..dc7d409d6 100644
--- a/html/includes/table/devices.inc.php
+++ b/html/includes/table/devices.inc.php
@@ -207,6 +207,7 @@ foreach (dbFetchRows($sql, $param) as $device) {
$hostname .= '
'.$device['sysName'];
if (empty($port_count)) {
$port_count = 0;
+ $col_port = '';
}
if ($port_count) {
$col_port = '
'.$port_count.'
';