2010-09-09 Sancho Lerena <slerena@artica.es>
* fgraph.php: Graph "Modules per agent" was not working properly due a invalid reference to array. Fixed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
f4a584c36a
commit
73ccc00ad4
|
@ -1,3 +1,8 @@
|
|||
2010-09-09 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* fgraph.php: Graph "Modules per agent" was not working properly
|
||||
due a invalid reference to array. Fixed.
|
||||
|
||||
2010-09-08 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/alerts/alert_list.list.php: fixed the pagination when the list of
|
||||
|
|
|
@ -824,13 +824,13 @@ function graph_db_agentes_modulos ($width, $height) {
|
|||
|
||||
$modules = get_db_all_rows_sql ('SELECT COUNT(id_agente_modulo),id_agente
|
||||
FROM tagente_modulo GROUP BY id_agente
|
||||
ORDER BY 1 DESC LIMIT 8');
|
||||
ORDER BY 1 DESC LIMIT 10');
|
||||
if ($modules === false)
|
||||
$modules = array ();
|
||||
|
||||
foreach ($modules as $module) {
|
||||
$agent_name = get_agent_name ($module['id_agente'], "none");
|
||||
$data[$agent_name] = $module[0];
|
||||
$data[$agent_name] = $module['COUNT(id_agente_modulo)'];
|
||||
}
|
||||
|
||||
if (! $graphic_type) {
|
||||
|
|
Loading…
Reference in New Issue