diff options
Diffstat (limited to 'frontends/php/chart4.php')
| -rw-r--r-- | frontends/php/chart4.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontends/php/chart4.php b/frontends/php/chart4.php index 05547607..fb58503d 100644 --- a/frontends/php/chart4.php +++ b/frontends/php/chart4.php @@ -40,6 +40,11 @@ include_once "include/page_header.php"; <?php $denyed_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_ONLY, PERM_MODE_LT); + if(! (DBfetch(DBselect('select distinct t.triggerid from triggers t where t.triggerid='.$_REQUEST['triggerid']))) ) + { + fatal_error(S_NO_TRIGGER_DEFINED); + } + if(! ($db_data = DBfetch(DBselect('select distinct t.triggerid,t.description,h.host,h.hostid '. ' from hosts h, items i, functions f, triggers t'. ' where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=t.triggerid and t.triggerid='.$_REQUEST["triggerid"]. |
