fixed invalid array key php warning

This commit is contained in:
2026-02-23 06:34:03 -05:00
parent eb29a3799c
commit 9cce143cf9

View File

@@ -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, "<strong>Note deleted.</strong> <a href=\"lognotes.php\">Return to main page.</a>");
}
if ($_SESSION['login']) {
if (array_key_exists('login',$_SESSION)) {
// show the template selection line
templateselect($techid, NULL);
}