mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
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,
|
function modules_create_agent_module ($id_agent, $name, $values = false, $disableACL = false,
|
||||||
$tags = false) {
|
$tags = false) {
|
||||||
|
|
||||||
html_debug_print('entra la hostia');
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
if (!$disableACL) {
|
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) {
|
if (mb_ereg_match('[\xc2\xa1\xc2\xbf\xc3\xb7\xc2\xba\xc2\xaa]', io_safe_output($name)) !== false) {
|
||||||
return ERR_GENERIC;
|
return ERR_GENERIC;
|
||||||
}
|
}
|
||||||
html_debug_print('sigue');
|
|
||||||
if (! is_array ($values))
|
if (! is_array ($values))
|
||||||
$values = array ();
|
$values = array ();
|
||||||
$values['nombre'] = $name;
|
$values['nombre'] = $name;
|
||||||
@ -515,7 +513,7 @@ html_debug_print('entra la hostia');
|
|||||||
}
|
}
|
||||||
|
|
||||||
$id_agent_module = db_process_sql_insert ('tagente_modulo', $values);
|
$id_agent_module = db_process_sql_insert ('tagente_modulo', $values);
|
||||||
html_debug_print($id_agent_module);
|
|
||||||
if ($id_agent_module === false)
|
if ($id_agent_module === false)
|
||||||
return ERR_DB;
|
return ERR_DB;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user