mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-06 03:45:26 +00:00
Add safety check
This commit is contained in:
parent
db3cdd1d15
commit
1e1a68ea28
1 changed files with 4 additions and 0 deletions
|
|
@ -112,6 +112,10 @@ if((host == nil) and ((_GET["mode"] == "restore"))) then
|
|||
end
|
||||
|
||||
function formatContacts(v)
|
||||
if not v then
|
||||
return ""
|
||||
end
|
||||
|
||||
if(v > 5) then
|
||||
return("<font color=red><b>"..formatValue(v).."</b></font>")
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue