From 1bce11aec73bcd6f90fe8e72877b4061ae8d45af Mon Sep 17 00:00:00 2001 From: Karol Nowacki Date: Thu, 21 Apr 2011 20:24:38 +0200 Subject: resolve php notices Including a lot of undefined $_GET values. --- inc/functions.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'inc/functions.inc.php') 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 @@ # global functions +function GET($index) { + if (isset($_GET[$index])) + return $_GET[$index]; + return null; +} + function validate_get($value, $type) { switch($type) { case 'host': -- cgit v1.1