mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Scrutinizer report
- array(device=...legend={$legend}") of type array<integer,string,..."string"}> is not a sub-type of string. - $sep of type string is not a sub-type of array.
This commit is contained in:
@ -116,7 +116,7 @@ function get_percentage_colours($percentage)
|
||||
function generate_minigraph_image($device, $start, $end, $type, $legend = 'no', $width = 275, $height = 100, $sep = '&', $class = "minigraph-image")
|
||||
{
|
||||
return '<img class="'.$class.'" src="graph.php?'.
|
||||
implode(array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend"), $sep).'">';
|
||||
implode($sep, array('device='.$device['device_id'], "from=$start", "to=$end", "width=$width", "height=$height", "type=$type", "legend=$legend")).'">';
|
||||
}
|
||||
|
||||
function generate_device_url($device, $vars=array())
|
||||
|
Reference in New Issue
Block a user