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:
Paul Gear
2014-03-14 10:02:41 +10:00
parent fe6cdf6db2
commit a012b59790

View File

@ -116,7 +116,7 @@ function get_percentage_colours($percentage)
function generate_minigraph_image($device, $start, $end, $type, $legend = 'no', $width = 275, $height = 100, $sep = '&amp;', $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())