aboutsummaryrefslogtreecommitdiff
path: root/src/Handlers/NoteHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Handlers/NoteHandler.php')
-rw-r--r--src/Handlers/NoteHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Handlers/NoteHandler.php b/src/Handlers/NoteHandler.php
index aa1cf78..4ce3179 100644
--- a/src/Handlers/NoteHandler.php
+++ b/src/Handlers/NoteHandler.php
@@ -23,7 +23,7 @@ class NoteHandler implements Handler
}
if ($_SERVER["REQUEST_METHOD"] === "POST") {
- if ($_POST["delete"] === "delete") {
+ if (isset($_POST["delete"]) && $_POST["delete"] === "delete") {
$note->delete($db);
http_response_code(303);
$url = $env->documentRoot();