mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02: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")
|
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?'.
|
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())
|
function generate_device_url($device, $vars=array())
|
||||||
|
|||||||
Reference in New Issue
Block a user