fixed invalid array key php warning
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user