From 56eaaad116753627e6e53d522fa2b4dd3ff66643 Mon Sep 17 00:00:00 2001 From: vgilc Date: Thu, 14 Jul 2011 15:06:09 +0000 Subject: [PATCH] 2011-07-14 Vanessa Gil * include/functions_agents.php: Fixed bad type returned by the function 'agents_get_modules_data_count'. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4567 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_agents.php | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index b523e3761f..8fa9c5aaf8 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-07-14 Vanessa Gil + + * include/functions_agents.php: Fixed bad type returned by the function 'agents_get_modules_data_count'. + 2011-07-14 Juan Manuel Ramon * include/functions_agents.php: Added "subquery_enterprise" variable diff --git a/pandora_console/include/functions_agents.php b/pandora_console/include/functions_agents.php index 04d08052fb..7d9f5aae34 100644 --- a/pandora_console/include/functions_agents.php +++ b/pandora_console/include/functions_agents.php @@ -1183,11 +1183,7 @@ function agents_get_modules_data_count ($id_agent = 0) { $count["total"] += (int) db_get_sql ($sql, 0, true); } } - - if (!isset ($agent_id)) { - //If agent_id is not set, it didn't loop through any agents - return $count["total"]; - } + return $count; //Return the array }