From 9cb6e7b6657786d757294dc3a04440bd2eb1d100 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Sun, 6 Nov 2022 17:06:10 -0600 Subject: [PATCH] Fix port neighbors missing (#14586) Inverted check when fixing another bug --- includes/html/print-interface.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/html/print-interface.inc.php b/includes/html/print-interface.inc.php index acb1fd22ff..040a9400d8 100644 --- a/includes/html/print-interface.inc.php +++ b/includes/html/print-interface.inc.php @@ -204,7 +204,7 @@ echo ''; $neighborsCount = 0; $nbLinks = 0; $int_links = []; -if (strpos($port['label'], 'oopback') === false && ! empty($graph_type)) { +if (strpos($port['label'], 'oopback') === false && empty($graph_type)) { foreach (dbFetchRows('SELECT * FROM `links` AS L, `ports` AS I, `devices` AS D WHERE L.local_port_id = ? AND L.remote_port_id = I.port_id AND I.device_id = D.device_id', [$if_id]) as $link) { $int_links[$link['port_id']] = $link['port_id']; $int_links_phys[$link['port_id']] = 1;