]> git.pld-linux.org Git - packages/cacti.git/blame - fix_sql_syntax_related_to_default_rra_id.patch
- silence php warning accessing items from array that don't exist if queried host...
[packages/cacti.git] / fix_sql_syntax_related_to_default_rra_id.patch
CommitLineData
fdcfda25
AM
1--- cacti-0.8.6h/graph.php 2006-01-03 21:08:30.000000000 -0600
2+++ cacti-fixed/graph.php 2006-01-06 22:40:29.643671752 -0600
3@@ -130,13 +130,13 @@
4 $timespan = -($rra["timespan"]);
5
6 /* find the step and how often this graph is updated with new data */
7- $ds_step = db_fetch_cell("select
8+ $ds_step = db_fetch_cell("SELECT
9 data_template_data.rrd_step
10- from (data_template_data,data_template_rrd,graph_templates_item)
11- where graph_templates_item.task_item_id=data_template_rrd.id
12- and data_template_rrd.local_data_id=data_template_data.local_data_id
13- and graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] .
14- "limit 0,1");
15+ FROM (data_template_data,data_template_rrd,graph_templates_item)
16+ WHERE graph_templates_item.task_item_id=data_template_rrd.id
17+ AND data_template_rrd.local_data_id=data_template_data.local_data_id
18+ AND graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] .
19+ " LIMIT 0,1");
20 $ds_step = empty($ds_step) ? 300 : $ds_step;
21 $seconds_between_graph_updates = ($ds_step * $rra["steps"]);
22
This page took 0.106229 seconds and 4 git commands to generate.