fixed minor error
This commit is contained in:
parent
73a5a63956
commit
b36bf868b1
|
@ -473,8 +473,6 @@ function modules_update_agent_module ($id, $values,
|
|||
*/
|
||||
function modules_create_agent_module ($id_agent, $name, $values = false, $disableACL = false,
|
||||
$tags = false) {
|
||||
|
||||
html_debug_print('entra la hostia');
|
||||
global $config;
|
||||
|
||||
if (!$disableACL) {
|
||||
|
@ -490,7 +488,7 @@ html_debug_print('entra la hostia');
|
|||
if (mb_ereg_match('[\xc2\xa1\xc2\xbf\xc3\xb7\xc2\xba\xc2\xaa]', io_safe_output($name)) !== false) {
|
||||
return ERR_GENERIC;
|
||||
}
|
||||
html_debug_print('sigue');
|
||||
|
||||
if (! is_array ($values))
|
||||
$values = array ();
|
||||
$values['nombre'] = $name;
|
||||
|
@ -515,7 +513,7 @@ html_debug_print('entra la hostia');
|
|||
}
|
||||
|
||||
$id_agent_module = db_process_sql_insert ('tagente_modulo', $values);
|
||||
html_debug_print($id_agent_module);
|
||||
|
||||
if ($id_agent_module === false)
|
||||
return ERR_DB;
|
||||
|
||||
|
|
Loading…
Reference in New Issue