fixed isAdmin
This commit is contained in:
@@ -49,7 +49,7 @@ class NotesController
|
||||
|
||||
if ($note) {
|
||||
// Redirect to show notes page after successful creation
|
||||
header('Location: ?controller=NotesController&page=showNotes');
|
||||
header('Location: ?controller=Notes&page=showNotes');
|
||||
exit();
|
||||
} else {
|
||||
// If creation failed, show error message and stay on the form
|
||||
@@ -69,7 +69,7 @@ class NotesController
|
||||
|
||||
if ($note) {
|
||||
// Redirect to show notes page after successful creation
|
||||
header('Location: ?controller=NotesController&page=showNotes');
|
||||
header('Location: ?controller=Notes&page=showNotes');
|
||||
exit();
|
||||
} else {
|
||||
// If creation failed, show error message and stay on the form
|
||||
@@ -84,6 +84,6 @@ class NotesController
|
||||
{
|
||||
$noteId = $_GET['id'];
|
||||
$this->notesModel->deleteNote($noteId, $_SESSION['user_id']);
|
||||
header("Location: ?controller=NotesController&page=showNotes");
|
||||
header("Location: ?controller=Notes&page=showNotes");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user