From ec4bb288aab6ac5fbc537070e437afbc2e9b05ab Mon Sep 17 00:00:00 2001
From: root
Date: Tue, 7 Oct 2008 15:49:57 +0000
Subject: [PATCH] Improved register_globals
---
pages/index/0.php | 2 +-
pages/index/4.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pages/index/0.php b/pages/index/0.php
index c76ce41..db4f359 100644
--- a/pages/index/0.php
+++ b/pages/index/0.php
@@ -23,7 +23,7 @@
=sprintf(_("This license applies to using the CAcert %s root keys %s."),'','')?>
- if(!$_SESSION['mconn']) echo ""._("Most CAcert functions are currently unavailable. Please come back later.")."";?>
+ if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn']) echo ""._("Most CAcert functions are currently unavailable. Please come back later.")."";?>
diff --git a/pages/index/4.php b/pages/index/4.php
index d8d210b..927e675 100644
--- a/pages/index/4.php
+++ b/pages/index/4.php
@@ -17,7 +17,7 @@
*/ ?>
- if(!$_SESSION['mconn'])
+ if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn'])
{
echo _("This function is currently unavailable. Please come back later.");
exit;