2011-07-14 Vanessa Gil <vanessa.gil@artica.es>

* 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
This commit is contained in:
vgilc 2011-07-14 15:06:09 +00:00
parent 5a4a4bb76b
commit 56eaaad116
2 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2011-07-14 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_agents.php: Fixed bad type returned by the function 'agents_get_modules_data_count'.
2011-07-14 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_agents.php: Added "subquery_enterprise" variable

View File

@ -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
}