mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Do not print nil for empty values
This commit is contained in:
parent
790ba581d2
commit
90b7c5fd91
1 changed files with 4 additions and 1 deletions
|
|
@ -871,7 +871,10 @@ function alert_store:has_alerts()
|
|||
res = interface.alert_store_query(q)
|
||||
has_historical_alerts = res and res[1] and res[1]["has_historical_alerts"] == "1" or false
|
||||
end
|
||||
|
||||
|
||||
-- tprint(q)
|
||||
-- tprint(res)
|
||||
|
||||
return has_historical_alerts
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue