2010-11-05 Sergio Martin <sergio.martin@artica.es>

* include/fgraph.php: Fixed event graphs by user for
	bug 3102830



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3532 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-11-05 08:50:22 +00:00
parent 50030435e5
commit 4f14f41206
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-11-05 Sergio Martin <sergio.martin@artica.es>
* include/fgraph.php: Fixed event graphs by user for
bug 3102830
2010-11-04 Ramon Novoa <rnovoa@artica.es>
* include/functions_ui.php: Check that the alert has a 'standby' column

View File

@ -893,19 +893,20 @@ function grafico_eventos_usuario ($width, $height) {
$data = array ();
$max_items = 5;
$sql = sprintf ('SELECT COUNT(id_evento),id_usuario
$sql = sprintf ('SELECT COUNT(id_evento) events,id_usuario
FROM tevento GROUP BY id_usuario
ORDER BY 1 DESC LIMIT %d', $max_items);
$events = get_db_all_rows_sql ($sql);
foreach ($events as $event) {
$data[$event[1]] = $event[0];
$data['id_usuario'] = $event['events'];
}
if (! $graphic_type) {
return fs_3d_pie_chart ($data, $width, $height);
}
generic_pie_graph ($width, $height, $data);
//generic_pie_graph ($width, $height, $data);
}
/**