diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-25 11:52:41 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-06-25 11:52:41 +0000 |
| commit | 56a5e3453ca8651296755d5833aac6becf620fa3 (patch) | |
| tree | 7d633b3cbc921d8065939a923da02b5fc0fb4836 /frontends/php/latest.php | |
| parent | d3fc7944f6fd4a51dba16bcb1e24fa154a29e5fb (diff) | |
| download | zabbix-56a5e3453ca8651296755d5833aac6becf620fa3.tar.gz zabbix-56a5e3453ca8651296755d5833aac6becf620fa3.tar.xz zabbix-56a5e3453ca8651296755d5833aac6becf620fa3.zip | |
- [DEV-137] fix simple graphs error. Tnx to Palmertree. (Artem)
- [DEV-137] added profile value_id devision by nodes (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5788 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
| -rw-r--r-- | frontends/php/latest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php index 8ccf0f6f..ac44a107 100644 --- a/frontends/php/latest.php +++ b/frontends/php/latest.php @@ -52,12 +52,12 @@ include_once "include/page_header.php"; $options = array('allow_all_hosts','monitored_hosts','with_monitored_items'); - $_REQUEST['hostid'] = get_request('hostid',get_profile('web.latest.last.hostid')); - if(!isset($_REQUEST['hostid'])){ + $_REQUEST['hostid'] = get_request('hostid',get_profile('web.latest.last.hostid', null, PROFILE_TYPE_ID)); + if(is_null($_REQUEST['hostid'])){ array_push($options,'always_select_first_host'); - $_REQUEST['groupid'] = get_request('groupid',get_profile('web.latest.last.groupid')); - if(!isset($_REQUEST['groupid'])){ + $_REQUEST['groupid'] = get_request('groupid',get_profile('web.latest.last.groupid', null, PROFILE_TYPE_ID)); + if(is_null($_REQUEST['groupid'])){ validate_group(PERM_READ_ONLY,array('allow_all_hosts','monitored_hosts','with_monitored_items','always_select_first_group'),'web.latest.last.groupid'); } } |
