summaryrefslogtreecommitdiffstats
path: root/frontends/php/chart3.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/chart3.php
parent3e5c8f13f71b5297f5c6621b7156e381606f06ac (diff)
- 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/chart3.php')
-rw-r--r--frontends/php/chart3.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/chart3.php b/frontends/php/chart3.php
index 311a141e..daefa86d 100644
--- a/frontends/php/chart3.php
+++ b/frontends/php/chart3.php
@@ -59,7 +59,10 @@ include_once "include/page_header.php";
foreach($items as $gitem)
{
- $host = DBfetch(DBselect('select h.* from hosts h,items i where h.hostid=i.hostid and i.itemid='.$gitem['itemid']));
+ if( !($host = DBfetch(DBselect('select h.* from hosts h,items i where h.hostid=i.hostid and i.itemid='.$gitem['itemid']))) )
+ {
+ fatal_error(S_NO_ITEM_DEFINED);
+ }
if(in_array($host['hostid'], $denyed_hosts))
{
access_deny();