From 1528814bf6b442cc01211b9f0b3f2adaadf970f4 Mon Sep 17 00:00:00 2001 From: artem Date: Fri, 23 May 2008 10:30:10 +0000 Subject: - [DEV-172] added support of Apache authentication (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5724 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/chart.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/php/chart.php') 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(); } -- cgit