diff options
author | Karol Nowacki | 2011-04-21 20:24:38 +0200 |
---|---|---|
committer | Pim van den Berg | 2011-04-21 20:30:07 +0200 |
commit | 1bce11aec73bcd6f90fe8e72877b4061ae8d45af (patch) | |
tree | 082af880c39ee01a241c0467fec29c239ef0155b /graph.php | |
parent | plugin/varnish: deduplicate rrd_format values (diff) | |
download | apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.zip apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.gz apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.bz2 apt-panopticon_cgp-1bce11aec73bcd6f90fe8e72877b4061ae8d45af.tar.xz |
resolve php notices
Including a lot of undefined $_GET values.
Diffstat (limited to 'graph.php')
-rw-r--r-- | graph.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,11 +3,11 @@ | |||
3 | require_once 'conf/common.inc.php'; | 3 | require_once 'conf/common.inc.php'; |
4 | require_once 'inc/functions.inc.php'; | 4 | require_once 'inc/functions.inc.php'; |
5 | 5 | ||
6 | $plugin = validate_get($_GET['p'], 'plugin'); | 6 | $plugin = validate_get(GET('p'), 'plugin'); |
7 | $width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; | 7 | $width = empty($_GET['x']) ? $CONFIG['width'] : $_GET['x']; |
8 | $heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; | 8 | $heigth = empty($_GET['y']) ? $CONFIG['heigth'] : $_GET['y']; |
9 | 9 | ||
10 | if (validate_get($_GET['h'], 'host') === NULL) { | 10 | if (validate_get(GET('h'), 'host') === NULL) { |
11 | error_log('CGP Error: plugin contains unknown characters'); | 11 | error_log('CGP Error: plugin contains unknown characters'); |
12 | error_image(); | 12 | error_image(); |
13 | } | 13 | } |