From 0395989ea9985b9c1f20cbc0e1f015a96d1dbbcd Mon Sep 17 00:00:00 2001 From: root Date: Thu, 25 Sep 2008 22:23:01 +0000 Subject: [PATCH] Improved register_globals --- www/wot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/wot.php b/www/wot.php index e682358..d8c8af8 100644 --- a/www/wot.php +++ b/www/wot.php @@ -162,7 +162,7 @@ $_SESSION['_config']['error'] = _("You failed to check all boxes to validate your adherence to the rules and policies of CAcert"); } - if($_POST['certify'] != 1 && $_SESSION['profile']['ttpadmin'] != 1) + if((!array_key_exists('certify',$_POST) || $_POST['certify'] != 1 ) && $_SESSION['profile']['ttpadmin'] != 1) { $id = $oldid; $oldid=0;