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, 1 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index e2f2577f..9dd01576 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -112,7 +112,7 @@
$color[$item]=DBget_field($result2,$item,2);
$host[$item]=DBget_field($result2,$item,3);
- $result=DBselect("select clock,value from history where itemid=".$HTTP_GET_VARS["itemid"]." and clock>$from_time and clock<$to_time order by clock");
+ $result=DBselect("select clock,value from history where itemid=$itemid and clock>$from_time and clock<$to_time order by clock");
$len[$item]=0;
$x[$item]=array();
$y[$item]=array();