From af04319a1dec9b1abb7ba6f6f0d43f95e914204a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 27 Aug 2008 23:07:49 +0000 Subject: [PATCH] Improved register_globals handling --- www/wot.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/wot.php b/www/wot.php index 67bc15b..560cbf1 100644 --- a/www/wot.php +++ b/www/wot.php @@ -20,10 +20,10 @@ loadem("account"); - if($_POST['date'] != "") + if(array_key_exists('date',$_POST) && $_POST['date'] != "") $_SESSION['_config']['date'] = $_POST['date']; - if($_POST['location'] != "") + if(array_key_exists('location',$_POST) && $_POST['location'] != "") $_SESSION['_config']['location'] = $_POST['location']; if($oldid == 12)