From e0ae525140b80866ef7dd2468128c9deb6f8fbb5 Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Fri, 20 Apr 2012 11:38:04 +0000 Subject: [PATCH] 2012-04-20 Sergio Martin * include/functions_alerts.php: Setted last_reference database field to actual utimestamp when create an alert to avoid unecessary charge on server git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6067 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_alerts.php | 1 + 2 files changed, 7 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7c10a53f06..12508dbd9e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2012-04-20 Sergio Martin + + * include/functions_alerts.php: Setted last_reference database + field to actual utimestamp when create an alert to avoid + unecessary charge on server + 2012-04-20 Sergio Martin * include/help/en/help_network_map.php diff --git a/pandora_console/include/functions_alerts.php b/pandora_console/include/functions_alerts.php index fc7b7fca2d..6ab41272f3 100644 --- a/pandora_console/include/functions_alerts.php +++ b/pandora_console/include/functions_alerts.php @@ -814,6 +814,7 @@ function alerts_create_alert_agent_module ($id_agent_module, $id_alert_template, $values = array (); $values['id_agent_module'] = (int) $id_agent_module; $values['id_alert_template'] = (int) $id_alert_template; + $values['last_reference'] = time(); return @db_process_sql_insert ('talert_template_modules', $values); }