diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-23 10:30:10 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-05-23 10:30:10 +0000 |
| commit | 1528814bf6b442cc01211b9f0b3f2adaadf970f4 (patch) | |
| tree | 8fc3c0a9e980925d6d96313f3737cd3576b90c16 /frontends/php/chart.php | |
| parent | b0a86ef20a92d1243c7e32510a81b70705980fa4 (diff) | |
| download | zabbix-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.php | 6 |
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(); } |
