Hides VLAN in the host details page when tag is zero

This commit is contained in:
Simone Mainardi 2019-07-24 13:34:54 +02:00
parent 4155bd69b5
commit e61a5ba85b

View file

@ -531,7 +531,7 @@ if((page == "overview") or (page == nil)) then
end
end
if host["vlan"] then
if host["vlan"] and host["vlan"] > 0 then
print("<tr><th>")
print(i18n("details.vlan_id"))
print("</th><td colspan=2><A HREF="..ntop.getHttpPrefix().."/lua/hosts_stats.lua?vlan="..host["vlan"]..">"..host["vlan"].."</A></td></tr>\n")