#10819 Fixed policy alert img

This commit is contained in:
Daniel Maya 2023-03-28 17:22:25 +02:00
parent 061c9f8750
commit eac71560cb
1 changed files with 3 additions and 1 deletions

View File

@ -1246,7 +1246,9 @@ function ui_format_alert_row(
$policyInfo = policies_is_alert_in_policy2($alert['id'], false);
$module_linked = policies_is_module_linked($alert['id_agent_module']);
if (is_array($policyInfo) === false && $module_linked === false) {
if ((is_array($policyInfo) === false && $module_linked === false)
|| (is_array($policyInfo) === false && $module_linked === '1')
) {
$data[$index['policy']] = '';
} else {
$module_linked = policies_is_module_linked($alert['id_agent_module']);