From 4eeeb02ee16f99f6b2d692f7e863ebfca66c1c63 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 24 Nov 2005 16:43:23 +0000 Subject: Misc cleanup. git-svn-id: svn://svn.zabbix.com/trunk@2356 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/graph.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'frontends/php/graph.php') diff --git a/frontends/php/graph.php b/frontends/php/graph.php index 4aa803ac..962d1b59 100644 --- a/frontends/php/graph.php +++ b/frontends/php/graph.php @@ -153,11 +153,12 @@ { $sql="select itemid,color,drawtype,sortorder,yaxisside from graphs_items where gitemid=".$_REQUEST["gitemid"]; $result=DBselect($sql); - $itemid=DBget_field($result,0,0); - $color=DBget_field($result,0,1); - $drawtype=DBget_field($result,0,2); - $sortorder=DBget_field($result,0,3); - $yaxisside=DBget_field($result,0,4); + $row=DBfetch($result); + $itemid=$row["itemid"]; + $color=$row["color"]; + $drawtype=$row["drawtype"]; + $sortorder=$row["sortorder"]; + $yaxisside=$row["yaxisside"]; } else { @@ -180,11 +181,11 @@ show_table2_h_delimiter(); $result=DBselect("select h.host,i.description,i.itemid,i.key_ from hosts h,items i where h.hostid=i.hostid and h.status in(".HOST_STATUS_MONITORED.",".HOST_STATUS_TEMPLATE.") and i.status=".ITEM_STATUS_ACTIVE." order by h.host,i.description"); echo "