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 /inc/functions.inc.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 'inc/functions.inc.php')
| -rw-r--r-- | inc/functions.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php index 04e58e3..39f1cd0 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php | |||
| @@ -2,6 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | # global functions | 3 | # global functions |
| 4 | 4 | ||
| 5 | function GET($index) { | ||
| 6 | if (isset($_GET[$index])) | ||
| 7 | return $_GET[$index]; | ||
| 8 | return null; | ||
| 9 | } | ||
| 10 | |||
| 5 | function validate_get($value, $type) { | 11 | function validate_get($value, $type) { |
| 6 | switch($type) { | 12 | switch($type) { |
| 7 | case 'host': | 13 | case 'host': |
