diff options
Diffstat (limited to 'graph.php')
| -rw-r--r-- | graph.php | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -6,11 +6,11 @@ require_once 'inc/collectd.inc.php'; | |||
| 6 | 6 | ||
| 7 | $plugin = validate_get(GET('p'), 'plugin'); | 7 | $plugin = validate_get(GET('p'), 'plugin'); |
| 8 | $type = validate_get(GET('t'), 'type'); | 8 | $type = validate_get(GET('t'), 'type'); |
| 9 | $width = GET('x') ? filter_input(INPUT_GET, 'x', FILTER_VALIDATE_INT, array( | 9 | $width = GET('x') ? filter_var(GET('x'), FILTER_VALIDATE_INT, array( |
| 10 | 'min_range' => 10, | 10 | 'min_range' => 10, |
| 11 | 'max_range' => $CONFIG['max-width'] | 11 | 'max_range' => $CONFIG['max-width'] |
| 12 | )) : $CONFIG['width']; | 12 | )) : $CONFIG['width']; |
| 13 | $height = GET('y') ? filter_input(INPUT_GET, 'y', FILTER_VALIDATE_INT, array( | 13 | $height = GET('y') ? filter_var(GET('y'), FILTER_VALIDATE_INT, array( |
| 14 | 'min_range' => 10, | 14 | 'min_range' => 10, |
| 15 | 'max_range' => $CONFIG['max-height'] | 15 | 'max_range' => $CONFIG['max-height'] |
| 16 | )) : $CONFIG['height']; | 16 | )) : $CONFIG['height']; |
