diff options
Diffstat (limited to 'frontends/php/chart.php')
| -rw-r--r-- | frontends/php/chart.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/chart.php b/frontends/php/chart.php index 7beeb1f1..9d9813e7 100644 --- a/frontends/php/chart.php +++ b/frontends/php/chart.php @@ -61,9 +61,9 @@ include_once "include/page_header.php"; $effectiveperiod = navigation_bar_calc(); - $_REQUEST['period'] = get_request('period',get_profile('web.item['.$_REQUEST['itemid'].'].graph.period', ZBX_PERIOD_DEFAULT)); + $_REQUEST['period'] = get_request('period',get_profile('web.item.graph.period', ZBX_PERIOD_DEFAULT, PROFILE_TYPE_INT, $_REQUEST['itemid'])); if($_REQUEST['period'] >= ZBX_MIN_PERIOD){ - update_profile('web.item['.$_REQUEST['itemid'].'].graph.period',$_REQUEST['period']); + update_profile('web.item.graph.period',$_REQUEST['period'], PROFILE_TYPE_INT, $_REQUEST['itemid']); } |
