2011-08-19 Sergio Martin <sergio.martin@artica.es>

* include/functions_graph.php: Fixed event graph by user
	into event statistics



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4783 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2011-08-19 12:14:42 +00:00
parent 598ebae6e5
commit f00a5256d7
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-08-19 Sergio Martin <sergio.martin@artica.es>
* include/functions_graph.php: Fixed event graph by user
into event statistics
2011-08-19 Miguel de Dios <miguel.dedios@artica.es>
* extensions/net_tools.php: fixed the try to execute any commands in the

View File

@ -1362,6 +1362,15 @@ function grafico_eventos_usuario ($width, $height) {
$events = array();
}
foreach($events as $event) {
if($event['id_usuario'] == '0') {
$data[__('System')] = $event['events'];
}
else {
$data[$event['id_usuario']] = $event['events'];
}
}
return pie3d_graph($config['flash_charts'], $data, $width, $height,
__('Other'), '', $config['homedir'] . "/images/logo_vertical_water.png",
$config['fontpath'], $config['font_size']);