mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Merge branch 'ent-12139-16339-llamada-api-new_agent-no-funciona-correctamente' into 'develop'
Ent 12139 16339 llamada api new agent no funciona correctamente See merge request artica/pandorafms!6509
This commit is contained in:
commit
c98e773cb3
@ -2016,7 +2016,7 @@ function api_set_new_agent($id_node, $thrash2, $other, $trhash3, $return=false,
|
|||||||
}
|
}
|
||||||
|
|
||||||
returnError('No agent alias specified');
|
returnError('No agent alias specified');
|
||||||
} else if (agents_get_agent_id($nombre_agente)) {
|
} else if (agents_get_agent_id($agent->nombre())) {
|
||||||
if ($message === true) {
|
if ($message === true) {
|
||||||
return 'The agent name already exists in DB.';
|
return 'The agent name already exists in DB.';
|
||||||
}
|
}
|
||||||
@ -2064,7 +2064,7 @@ function api_set_new_agent($id_node, $thrash2, $other, $trhash3, $return=false,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($return === false) {
|
if ($return !== true) {
|
||||||
returnData(
|
returnData(
|
||||||
'string',
|
'string',
|
||||||
[
|
[
|
||||||
|
Loading…
x
Reference in New Issue
Block a user