fixed invalid array key php warning
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
include("functions.php");
|
include("functions.php");
|
||||||
|
|
||||||
if (!$_SESSION['login'] && !$_REQUEST['partview']) {
|
if (!array_key_exists("login",$_SESSION) && !array_key_exists("partview",$_REQUEST)) {
|
||||||
header("Location: login.php");
|
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>");
|
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
|
// show the template selection line
|
||||||
templateselect($techid, NULL);
|
templateselect($techid, NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user