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.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 34d7e47c..7e612917 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -40,7 +40,7 @@
$graph->setBorder(0);
}
- $result=DBselect("select name,width,height,yaxistype,yaxismin,yaxismax from graphs where graphid=".$_REQUEST["graphid"]);
+ $result=DBselect("select * from graphs where graphid=".$_REQUEST["graphid"]);
$row=DBfetch($result);
$db_hosts = get_hosts_by_graphid($_REQUEST["graphid"]);
$name=$row["name"];
@@ -67,6 +67,7 @@
$height=$row["height"];
}
+ $graph->ShowWorkPeriod($row["show_work_period"]);
$graph->setWidth($width);
$graph->setHeight($height);
$graph->setHeader($name);