Invalid MAC formatting

This commit is contained in:
Luca Deri 2022-09-27 13:33:40 +02:00
parent 3d5359dc65
commit bfd02c98d5

View file

@ -49,8 +49,10 @@ function getMacHosts(mac)
url = ntop.getHttpPrefix().."/lua/hosts_stats.lua?mac="..mac
if num_hosts > 1 then
hosts = i18n("n_more_objects", { label = first_host["ip"], num = num_hosts, object = i18n("hosts")})
if num_hosts == 1 then
hosts = first_host["ip"]
elseif num_hosts > 1 then
hosts = i18n("n_more_objects", { label = first_host["ip"], num = num_hosts, object = i18n("hosts")})
end
end