From cf6a26a0b53434005dba26517d683dc9bf70be67 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 4 May 2015 14:14:32 +0200 Subject: [PATCH] Fixed a call to enterprise_include_once (was called before ENTERPRISE_DIR was set). --- pandora_console/include/functions_agents.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 052433f26d..09f1c969f6 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -22,7 +22,6 @@ require_once($config['homedir'] . '/include/functions.php'); require_once($config['homedir'] . "/include/functions_modules.php"); require_once($config['homedir'] . '/include/functions_users.php'); -enterprise_include_once('/include/functions_agents.php'); /** * Check the agent exists in the DB. @@ -1815,6 +1814,7 @@ function agents_delete_agent ($id_agents, $disableACL = false) { "Deleted agent '$agent_name'"); // Delete the agent from the metaconsole cache + enterprise_include_once('include/functions_agents.php'); enterprise_hook('agent_delete_from_cache', array($id_agent)); /* Break the loop on error */