summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/latest.php')
-rw-r--r--frontends/php/latest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 25ef9993..5ce03428 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -47,8 +47,11 @@ include_once "include/page_header.php";
);
check_fields($fields);
+
+ $options = array("allow_all_hosts","always_select_first_host","monitored_hosts","with_monitored_items");
+ if(!$ZBX_WITH_SUBNODES) array_push($options,"only_current_node");
- validate_group_with_host(PERM_READ_ONLY,array("allow_all_hosts","always_select_first_host","monitored_hosts","with_monitored_items"));
+ validate_group_with_host(PERM_READ_ONLY,$options);
?>
<?php