diff --git a/html/includes/print-interface.inc.php b/html/includes/print-interface.inc.php
index bbec19f8a3..b2a6d2dc44 100644
--- a/html/includes/print-interface.inc.php
+++ b/html/includes/print-interface.inc.php
@@ -179,8 +179,7 @@ echo '';
echo '
';
$neighborsCount=0;
-echo '
- ';
+$displayPlus=0;
if (strpos($port['label'], 'oopback') === false && !$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', array($if_id)) as $link) {
// echo(" " . generate_port_link($link, makeshortif($link['label'])) . " on " . generate_device_link($link, shorthost($link['hostname'])) . " ");
@@ -194,6 +193,11 @@ if (strpos($port['label'], 'oopback') === false && !$graph_type) {
if ($port_details && $config['enable_port_relationship'] === true) {
// Show which other devices are on the same subnet as this interface
foreach (dbFetchRows("SELECT `ipv4_network_id` FROM `ipv4_addresses` WHERE `port_id` = ? AND `ipv4_address` NOT LIKE '127.%'", array($port['port_id'])) as $net) {
+ if($displayPlus == 0) {
+ $displayPlus=1;
+ echo '
+ ';
+ }
$ipv4_network_id = $net['ipv4_network_id'];
$sql = 'SELECT I.port_id FROM ipv4_addresses AS A, ports AS I, devices AS D
WHERE A.port_id = I.port_id
@@ -314,7 +318,11 @@ if ($port_details && $config['enable_port_relationship'] === true && port_permit
unset($int_links, $int_links_v6, $int_links_v4, $int_links_phys, $br);
-echo ' | ';
+if($displayPlus)
+{
+echo '';
+}
+echo '';
// If we're showing graphs, generate the graph and print the img tags
if ($graph_type == 'etherlike') {