small bug fix in the 'Graph Templates' box (thanks to ricardo@memosis.pt)

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/trunk/cacti@1856 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Ian Berry committed 2004-07-28 04:41:45 +00:00
1 parent 0065c04242
commit 302cb50b07
1 file changed
+7 -1
+7 -1
View File
@@ -430,7 +430,13 @@ function graphs() {
and host_graph.host_id=" . $_REQUEST["host_id"] . "
order by graph_templates.name");
$template_graphs = db_fetch_assoc("select graph_local.graph_template_id from graph_local,host_graph where graph_local.graph_template_id=host_graph.graph_template_id and graph_local.host_id=" . $host["id"] . " group by graph_local.graph_template_id");
$template_graphs = db_fetch_assoc("select
graph_local.graph_template_id
from graph_local,host_graph
where graph_local.graph_template_id=host_graph.graph_template_id
and graph_local.host_id=host_graph.host_id
and graph_local.host_id=" . $host["id"] . "
group by graph_local.graph_template_id");
print "<script type='text/javascript'>\nvar gt_created_graphs = new Array()\n</script>\n";