Added missing check

This commit is contained in:
Luca Deri 2024-04-25 15:44:20 +02:00
parent e19a557beb
commit c204be6e3f

View file

@ -960,9 +960,9 @@ else
" <span id=flow_alerts_trend></span></td></tr>\n")
end
if (host["num_reset_flows"] > 0) then
if((host.num_reset_flows ~= nil) and (host.num_reset_flows > 0)) then
print("<tr><th>" .. i18n("host_details.attempted_reset_flows") .. "</th><td colspan=2></li>" ..
"<span id=num_reset_flows>" .. formatValue(host["num_reset_flows"]) .. "</span>" ..
"<span id=num_reset_flows>" .. formatValue(host.num_reset_flows) .. "</span>" ..
" <span id=flow_alerts_trend></span></td></tr>\n")
end