mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
don't print header when no dot1d data is available
git-svn-id: http://www.observium.org/svn/observer/trunk@2841 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -26,8 +26,11 @@ foreach($this_vlans as $vlan)
|
|||||||
|
|
||||||
echo("VLAN $vlan \n");
|
echo("VLAN $vlan \n");
|
||||||
|
|
||||||
echo(str_pad("dot1d id", 10).str_pad("ifIndex", 10).str_pad("Port Name", 25).
|
if ($vlan_data)
|
||||||
str_pad("Priority", 10).str_pad("State", 15).str_pad("Cost", 10)."\n");
|
{
|
||||||
|
echo(str_pad("dot1d id", 10).str_pad("ifIndex", 10).str_pad("Port Name", 25).
|
||||||
|
str_pad("Priority", 10).str_pad("State", 15).str_pad("Cost", 10)."\n");
|
||||||
|
}
|
||||||
|
|
||||||
foreach($vlan_data as $vlan_port_id => $vlan_port)
|
foreach($vlan_data as $vlan_port_id => $vlan_port)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user