Add safety check

This commit is contained in:
Alfredo Cardigliano 2022-08-19 11:08:05 +02:00
parent db3cdd1d15
commit 1e1a68ea28

View file

@ -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