fixed edit note
This commit is contained in:
@@ -76,7 +76,7 @@ class NotesModel extends Database
|
||||
}
|
||||
}
|
||||
|
||||
function editNote($noteId, $userId, $title, $content) {
|
||||
function editNote($noteId, $title, $content, $userId) {
|
||||
$pdo = $this->linkDB();
|
||||
if (!$pdo) return ['success' => false, 'message' => 'Database error.'];
|
||||
if (empty(trim($title))) return ['success' => false, 'message' => 'Title is required.'];
|
||||
|
Reference in New Issue
Block a user