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;