Compare commits

...

2 Commits

Author SHA1 Message Date
63899ffa8f Merge branch 'main' of http://git.pb.bib.de/PBBFA23CIV/EIANotesApp 2025-06-30 10:11:06 +02:00
5c381740ff removed comment 2025-06-30 10:11:01 +02:00

View File

@@ -98,7 +98,7 @@ class NotesModel extends Database
$checkParams = $this->isAdmin() ? [$noteId] : [$noteId, $userId];
$checkStmt->execute($checkParams);
if ($checkStmt->fetch()) {
return ['success' => true, 'message' => 'No changes made to the note.']; // Or false if you prefer
return ['success' => true, 'message' => 'No changes made to the note.'];
}
return ['success' => false, 'message' => 'Note not found or permission denied.'];
} catch (PDOException $e) {