mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
fix error sql service pandora_enterprise#9018
This commit is contained in:
parent
aae68408a1
commit
71fcb4fb9f
@ -704,14 +704,19 @@ class Module extends Entity
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (bool) \db_process_sql_insert(
|
$old = $this->alertTemplatesAssigned();
|
||||||
'talert_template_modules',
|
if (in_array($id_alert_template, $old) === false) {
|
||||||
[
|
return (bool) \db_process_sql_insert(
|
||||||
'id_agent_module' => $this->id_agente_modulo(),
|
'talert_template_modules',
|
||||||
'id_alert_template' => $id_alert_template,
|
[
|
||||||
'last_reference' => time(),
|
'id_agent_module' => $this->id_agente_modulo(),
|
||||||
]
|
'id_alert_template' => $id_alert_template,
|
||||||
);
|
'last_reference' => time(),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user