diff --git a/distfiles/logentry.php b/distfiles/logentry.php index 4bb7d71..a16cf3e 100644 --- a/distfiles/logentry.php +++ b/distfiles/logentry.php @@ -9,7 +9,7 @@ include("functions.php"); -if (!$_SESSION['login'] && !$_REQUEST['partview']) { +if (!array_key_exists("login",$_SESSION) && !array_key_exists("partview",$_REQUEST)) { header("Location: login.php"); } @@ -500,7 +500,7 @@ if ($delete) { format_message(0, "Note deleted. Return to main page."); } -if ($_SESSION['login']) { +if (array_key_exists('login',$_SESSION)) { // show the template selection line templateselect($techid, NULL); }