Fixed problem of evaluation for last_execution by casting time() to integer.
This commit is contained in:
parent
bf0211c9b8
commit
767cb01185
|
@ -1563,7 +1563,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
|
||||||
# Update action last execution date
|
# Update action last execution date
|
||||||
if (defined ($action->{'last_execution'}) && defined ($action->{'id_alert_templ_module_actions'})) {
|
if (defined ($action->{'last_execution'}) && defined ($action->{'id_alert_templ_module_actions'})) {
|
||||||
db_do ($dbh, 'UPDATE talert_template_module_actions SET last_execution = ?
|
db_do ($dbh, 'UPDATE talert_template_module_actions SET last_execution = ?
|
||||||
WHERE id = ?', time (), $action->{'id_alert_templ_module_actions'});
|
WHERE id = ?', int(time ()), $action->{'id_alert_templ_module_actions'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue