summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index bf8a79ad..87f843bf 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -56,6 +56,8 @@
$height=DBget_field($result,0,2);
}
+ $graph->setWidth($width);
+ $graph->setHeight($height);
$graph->setHeader(DBget_field($result,0,0));
$result=DBselect("select gi.itemid,i.description,gi.color,h.host,gi.drawtype from graphs_items gi,items i,hosts h where gi.itemid=i.itemid and gi.graphid=".$HTTP_GET_VARS["graphid"]." and i.hostid=h.hostid order by gi.gitemid");