From 6d55524484f765e0b5006e90ce6119900db3cf04 Mon Sep 17 00:00:00 2001 From: mbwall <11261878+mbwall@users.noreply.github.com> Date: Thu, 7 Feb 2019 13:24:20 -0600 Subject: [PATCH] Ignore disabled ports in minigraph view (#9737) --- html/pages/device/ports.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/pages/device/ports.inc.php b/html/pages/device/ports.inc.php index 3b69d1d162..1fc208e501 100644 --- a/html/pages/device/ports.inc.php +++ b/html/pages/device/ports.inc.php @@ -102,7 +102,7 @@ if ($vars['view'] == 'minigraphs') { unset($seperator); // FIXME - FIX THIS. UGLY. - foreach (dbFetchRows('select * from ports WHERE device_id = ? ORDER BY ifIndex', array($device['device_id'])) as $port) { + foreach (dbFetchRows('select * from ports WHERE device_id = ? AND `disabled` = 0 ORDER BY ifIndex', array($device['device_id'])) as $port) { $port = cleanPort($port, $device); echo "
".makeshortif($port['ifDescr']).'