mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
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
6480ab770f
commit
4022fdeafd
@ -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>
|
2010-09-08 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* godmode/alerts/alert_list.list.php: fixed the pagination when the list of
|
* 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
|
$modules = get_db_all_rows_sql ('SELECT COUNT(id_agente_modulo),id_agente
|
||||||
FROM tagente_modulo GROUP BY id_agente
|
FROM tagente_modulo GROUP BY id_agente
|
||||||
ORDER BY 1 DESC LIMIT 8');
|
ORDER BY 1 DESC LIMIT 10');
|
||||||
if ($modules === false)
|
if ($modules === false)
|
||||||
$modules = array ();
|
$modules = array ();
|
||||||
|
|
||||||
foreach ($modules as $module) {
|
foreach ($modules as $module) {
|
||||||
$agent_name = get_agent_name ($module['id_agente'], "none");
|
$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) {
|
if (! $graphic_type) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user