minor fix
This commit is contained in:
parent
2e7d5aa336
commit
1eb8b7d19e
|
@ -229,6 +229,11 @@ if ($add_module === true) {
|
||||||
// Safe output remove all entities.
|
// Safe output remove all entities.
|
||||||
io_safe_output_array($id_modules, '');
|
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(
|
$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)."')"
|
'SELECT id_agente_modulo FROM tagente_modulo WHERE id_agente IN ('.implode(',', $id_agents).") AND nombre IN ('".implode("','", $id_modules)."')"
|
||||||
|
|
Loading…
Reference in New Issue