From a012b59790adf4b6284faddbe15a1fbb99e98094 Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Fri, 14 Mar 2014 10:02:41 +1000 Subject: [PATCH] Fix Scrutinizer report - array(device=...legend={$legend}") of type array is not a sub-type of string. - $sep of type string is not a sub-type of array. --- html/includes/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index e57289828..8af13b553 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -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 ''; + 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())