diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index e572898283..8af13b5532 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())