From ec6d0458a59821b0ec99ec30d6748f84b96b3cda Mon Sep 17 00:00:00 2001 From: hkosaka Date: Thu, 15 Mar 2012 02:57:16 +0000 Subject: [PATCH] 2012-03-15 Hirofumi Kosaka * include/functions_api.php: Fixed the function "set_new_agent" to refer to the proper $config. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5772 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_api.php | 2 ++ 2 files changed, 7 insertions(+) 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];