97f04d3
--- cacti-0.8.6h/graph.php	2006-01-03 21:08:30.000000000 -0600
97f04d3
+++ cacti-fixed/graph.php	2006-01-06 22:40:29.643671752 -0600
97f04d3
@@ -130,13 +130,13 @@
97f04d3
 	$timespan = -($rra["timespan"]);
97f04d3
 
97f04d3
 	/* find the step and how often this graph is updated with new data */
97f04d3
-	$ds_step = db_fetch_cell("select
97f04d3
+	$ds_step = db_fetch_cell("SELECT
97f04d3
 		data_template_data.rrd_step
97f04d3
-		from (data_template_data,data_template_rrd,graph_templates_item)
97f04d3
-		where graph_templates_item.task_item_id=data_template_rrd.id
97f04d3
-		and data_template_rrd.local_data_id=data_template_data.local_data_id
97f04d3
-		and graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] .
97f04d3
-		"limit 0,1");
97f04d3
+		FROM (data_template_data,data_template_rrd,graph_templates_item)
97f04d3
+		WHERE graph_templates_item.task_item_id=data_template_rrd.id
97f04d3
+		AND data_template_rrd.local_data_id=data_template_data.local_data_id
97f04d3
+		AND graph_templates_item.local_graph_id=" . $_GET["local_graph_id"] .
97f04d3
+		" LIMIT 0,1");
97f04d3
 	$ds_step = empty($ds_step) ? 300 : $ds_step;
97f04d3
 	$seconds_between_graph_updates = ($ds_step * $rra["steps"]);
97f04d3