summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-23 10:30:10 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-23 10:30:10 +0000
commit1528814bf6b442cc01211b9f0b3f2adaadf970f4 (patch)
tree8fc3c0a9e980925d6d96313f3737cd3576b90c16 /frontends/php/chart.php
parentb0a86ef20a92d1243c7e32510a81b70705980fa4 (diff)
downloadzabbix-1528814bf6b442cc01211b9f0b3f2adaadf970f4.tar.gz
zabbix-1528814bf6b442cc01211b9f0b3f2adaadf970f4.tar.xz
zabbix-1528814bf6b442cc01211b9f0b3f2adaadf970f4.zip
- [DEV-172] added support of Apache authentication (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5724 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/chart.php')
-rw-r--r--frontends/php/chart.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php
index 8d4e92bb..7beeb1f1 100644
--- a/frontends/php/chart.php
+++ b/frontends/php/chart.php
@@ -50,9 +50,9 @@ include_once "include/page_header.php";
// show_message(S_NO_ITEM_DEFINED);
}
- if(! ($db_data = DBfetch(DBselect("select i.itemid from items i ".
- " where i.hostid in (".get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY).") ".
- " and i.itemid=".$_REQUEST["itemid"]))))
+ if(! ($db_data = DBfetch(DBselect('SELECT i.itemid from items i '.
+ ' WHERE i.hostid IN ('.get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY).') '.
+ ' AND i.itemid='.$_REQUEST['itemid']))))
{
access_deny();
}