minor fix

This commit is contained in:
alejandro.campos@artica.es 2022-11-18 14:21:31 +01:00
parent 2e7d5aa336
commit 1eb8b7d19e
1 changed files with 5 additions and 0 deletions

View File

@ -229,6 +229,11 @@ if ($add_module === true) {
// Safe output remove all entities.
io_safe_output_array($id_modules, '');
$id_modules = array_map(function ($mod) {
return io_safe_input($mod);
},
$id_modules
);
$id_agent_modules = db_get_all_rows_sql(
'SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente IN ('.implode(',', $id_agents).") AND nombre IN ('".implode("','", $id_modules)."')"