Merge branch '1920_Informe_de_alertas_4' into 'develop'

Fixed reports in alert module reports when module is empty

See merge request artica/pandorafms!1787
This commit is contained in:
vgilc 2018-09-20 16:02:14 +02:00
commit 53a3e4373f

View File

@ -3223,10 +3223,6 @@ function reporting_alert_report_module($report, $content) {
// Alerts over $id_agent_module // Alerts over $id_agent_module
$alerts = alerts_get_effective_alert_actions($content['id_agent_module']); $alerts = alerts_get_effective_alert_actions($content['id_agent_module']);
if ($alerts === false){
return;
}
$ntemplates = 0; $ntemplates = 0;
foreach ($alerts as $template => $actions) { foreach ($alerts as $template => $actions) {