diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index abf74728f7..9c4fd85dc2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-03-15 Hirofumi Kosaka + + * include/functions_api.php: Fixed the function "set_new_agent" + to refer to the proper $config. + 2012-03-14 Miguel de Dios * ChangeLog: added lost lines. diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 6ca34e9495..ad60ab6b2f 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -679,6 +679,8 @@ function get_tree_agents($trash1, $trahs2, $other, $returnType) * @param $thrash3 Don't use. */ function set_new_agent($thrash1, $thrash2, $other, $thrash3) { + global $config; + $name = $other['data'][0]; $ip = $other['data'][1]; $idParent = $other['data'][2];