Fix port neighbors missing (#14586)

Inverted check when fixing another bug
This commit is contained in:
Tony Murray
2022-11-06 17:06:10 -06:00
committed by GitHub
parent a01e8188d3
commit 9cb6e7b665
+1 -1
View File
@@ -204,7 +204,7 @@ echo '<td width=375 valign=top class="interface-desc">';
$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;