Compare commits
No commits in common. "63899ffa8f1db1958ea5f3a2d4799cef1b467e3f" and "fc17a1a312f7f654af23ec9ae7c5085747c4deca" have entirely different histories.
63899ffa8f
...
fc17a1a312
@ -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.'];
|
||||
return ['success' => true, 'message' => 'No changes made to the note.']; // Or false if you prefer
|
||||
}
|
||||
return ['success' => false, 'message' => 'Note not found or permission denied.'];
|
||||
} catch (PDOException $e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user