mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2969 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -10,12 +10,12 @@ echo("<td class=list-bold>");
|
||||
|
||||
$vlan_ports = array();
|
||||
$otherports = dbFetchRows("SELECT * FROM `ports_vlans` AS V, `ports` as P WHERE V.`device_id` = ? AND V.`vlan` = ? AND P.interface_id = V.interface_id", array($device['device_id'], $vlan['vlan_vlan']));
|
||||
foreach($otherports as $otherport)
|
||||
foreach ($otherports as $otherport)
|
||||
{
|
||||
$vlan_ports[$otherport[ifIndex]] = $otherport;
|
||||
}
|
||||
$otherports = dbFetchRows("SELECT * FROM ports WHERE `device_id` = ? AND `ifVlan` = ?", array($device['device_id'], $vlan['vlan_vlan']));
|
||||
foreach($otherports as $otherport)
|
||||
foreach ($otherports as $otherport)
|
||||
{
|
||||
$vlan_ports[$otherport[ifIndex]] = array_merge($otherport, array('untagged' => '1'));
|
||||
}
|
||||
@@ -42,7 +42,7 @@ foreach ($vlan_ports as $port)
|
||||
{
|
||||
echo($vlan['port_sep'] . generate_port_link($port, makeshortif($port['label'])));
|
||||
$vlan['port_sep'] = ", ";
|
||||
if($port['untagged']) { echo("(U)"); }
|
||||
if ($port['untagged']) { echo("(U)"); }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user