aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/graph.php
diff options
context:
space:
mode:
Diffstat (limited to 'graph.php')
-rw-r--r--graph.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph.php b/graph.php
index 2d62d92..2c3f6e6 100644
--- a/graph.php
+++ b/graph.php
@@ -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'];