summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart2.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-23 09:37:47 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-07-23 09:37:47 +0000
commit5c3768ceaa3080321c3bf6481640fcdd380d0025 (patch)
tree172b94421c008b166a1106c5c42f983c2b8fe5b3 /frontends/php/chart2.php
parent6db9d7bcf88b79ab279dd2b5dc929fabb1a23f1f (diff)
downloadzabbix-5c3768ceaa3080321c3bf6481640fcdd380d0025.tar.gz
zabbix-5c3768ceaa3080321c3bf6481640fcdd380d0025.tar.xz
zabbix-5c3768ceaa3080321c3bf6481640fcdd380d0025.zip
- [DEV-192] added filter to Status of triggers (Artem)
- [DEV-191] monitoring screens inline update preparation (Artem) - [DEV-192] added severity filter in status of triggers (Artem) - [DEV-137] sql fixes for oracle (Artem) - [ZBX-396] fixed error maps message (Artem) - [ZBX-394] fixed showing hosts without group in status of triggers (Artem) - [DEV-137] small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5841 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart2.php')
-rw-r--r--frontends/php/chart2.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php
index 73bdf194..e5dc43ad 100644
--- a/frontends/php/chart2.php
+++ b/frontends/php/chart2.php
@@ -49,7 +49,7 @@ include_once 'include/page_header.php';
show_error_message(S_NO_GRAPH_DEFINED);
}
- $available_hosts = get_accessible_hosts_by_user($USER_DETAILS, PERM_READ_ONLY);
+ $available_hosts = get_accessible_hosts_by_user($USER_DETAILS, PERM_READ_ONLY,PERM_RES_IDS_ARRAY);
if(!graph_accessible($_REQUEST['graphid'])){
access_deny();
@@ -69,7 +69,7 @@ include_once 'include/page_header.php';
' LEFT JOIN items i ON gi.itemid=i.itemid '.
' LEFT JOIN hosts h ON i.hostid=h.hostid '.
' WHERE g.graphid='.$_REQUEST['graphid'].
- ' AND h.hostid IN ('.$available_hosts.') ';
+ ' AND '.DBcondition('h.hostid',$available_hosts);
$db_data = DBfetch(DBselect($sql));
@@ -102,8 +102,7 @@ include_once 'include/page_header.php';
' WHERE gi.graphid='.$db_data['graphid'].
' ORDER BY gi.sortorder, gi.itemid DESC');
- while($db_data=DBfetch($result))
- {
+ while($db_data=DBfetch($result)){
$graph->AddItem(
$db_data['itemid'],
$db_data['yaxisside'],