Commit version 24.12.13800
This commit is contained in:
@ -5,31 +5,30 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if ($metric != 'counter' && device_permitted($device))
|
||||
{
|
||||
if ($metric != 'counter' && device_permitted($device)) {
|
||||
|
||||
// Don't show aggregate graphs to people without device permissions, or for "all sensors" view.
|
||||
// Don't show aggregate graphs to people without device permissions, or for "all sensors" view.
|
||||
|
||||
$graph_title = nicecase($vars['metric']);
|
||||
$graph_array['type'] = "device_".$vars['metric'];
|
||||
$graph_array['device'] = $device['device_id'];
|
||||
$graph_array['legend'] = 'no';
|
||||
$graph_title = nicecase($vars['metric']);
|
||||
$graph_array['type'] = "device_" . $vars['metric'];
|
||||
$graph_array['device'] = $device['device_id'];
|
||||
$graph_array['legend'] = 'no';
|
||||
|
||||
$box_args = array('title' => $graph_title,
|
||||
'header-border' => TRUE,
|
||||
);
|
||||
$box_args = ['title' => $graph_title,
|
||||
'header-border' => TRUE,
|
||||
];
|
||||
|
||||
echo generate_box_open($box_args);
|
||||
|
||||
print_graph_row($graph_array);
|
||||
echo generate_box_open($box_args);
|
||||
|
||||
echo generate_box_close();
|
||||
print_graph_row($graph_array);
|
||||
|
||||
echo generate_box_close();
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user