From ca499acd808b0325868d89e49f58cc5333d1b1ac Mon Sep 17 00:00:00 2001 From: mbwall <11261878+mbwall@users.noreply.github.com> Date: Fri, 25 Jan 2019 10:11:42 -0600 Subject: [PATCH] Ignore disabled ports in minigraph view --- 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 3b69d1d16255..1fc208e5012c 100644 --- a/html/pages/device/ports.inc.php +++ b/html/pages/device/ports.inc.php @@ -102,7 +102,7 @@ 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']).'