summaryrefslogtreecommitdiffstats
path: root/frontends/php/charts.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-02 12:23:31 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-08-02 12:23:31 +0000
commit78134fbc73c8f2f947722093fb1d625268a60552 (patch)
treeb84e3301b46e0a6054e8c2f55d34044050fa14b9 /frontends/php/charts.php
parent3e5c8f13f71b5297f5c6621b7156e381606f06ac (diff)
downloadzabbix-78134fbc73c8f2f947722093fb1d625268a60552.tar.gz
zabbix-78134fbc73c8f2f947722093fb1d625268a60552.tar.xz
zabbix-78134fbc73c8f2f947722093fb1d625268a60552.zip
- merged rev. 4501:4502 of branches/1.4.2 (Eugene)
[ - added undefined element message 'No **** defined' instead 'Premission deny' (Eugene) - fixed items,graphs,hostgroups deletion (Eugene) - fixed permisions for maps (Eugene) ] git-svn-id: svn://svn.zabbix.com/trunk@4505 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/charts.php')
-rw-r--r--frontends/php/charts.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/charts.php b/frontends/php/charts.php
index 24af3b94..d6977ac2 100644
--- a/frontends/php/charts.php
+++ b/frontends/php/charts.php
@@ -102,7 +102,7 @@ include_once 'include/page_header.php';
$availiable_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST, null, null, $ZBX_CURNODEID);
$denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY, PERM_MODE_LT);
- if($_REQUEST['graphid'] > 0)
+ if($_REQUEST['graphid'] > 0 && DBfetch(DBselect('select distinct graphid from graphs where graphid='.$_REQUEST['graphid'])))
{
if(! ($row = DBfetch(DBselect(' SELECT distinct h.host, g.name '.
' FROM hosts h, items i, graphs_items gi, graphs g '.
@@ -123,6 +123,7 @@ include_once 'include/page_header.php';
}
else
{
+ $_REQUEST['graphid'] = 0;
array_push($h1, S_SELECT_GRAPH_TO_DISPLAY);
}