Fix getting alert notifications when disabled

This commit is contained in:
emanuele-f 2019-07-17 18:49:56 +02:00
parent 6ea7055761
commit 608676fd0d

View file

@ -59,7 +59,7 @@ end
-- ##############################################
local function getEnabledAlertNotificationModules()
local notifications_enabled = ntop.getPref("ntopng.prefs.alerts.external_notifications_enabled")
local notifications_enabled = (ntop.getPref("ntopng.prefs.alerts.external_notifications_enabled") == "1")
local has_alerts_disabled = (ntop.getPref("ntopng.prefs.disable_alerts_generation") == "1")
if not notifications_enabled or has_alerts_disabled then