mirror of
https://github.com/JanGross/quicknotes.git
synced 2026-12-01 10:17:00 +01:00
Removes the old color if not used by any other note
This commit is contained in:
1 parent
6df7fc0ba8
commit
f32eccab48
3 files changed
+28
-11
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ class NoteMapper extends Mapper {
|
||||
}
|
||||
|
||||
public function colorIdCount($colorid) {
|
||||
$sql = 'SELECT COUNT(*) as `count` FROM *PREFIX*quicknotes WHERE color_id = ?';
|
||||
$sql = 'SELECT COUNT(*) as `count` FROM *PREFIX*quicknotes_notes WHERE color_id = ?';
|
||||
$result = $this->execute($sql, [$colorid]);
|
||||
$row = $result->fetch();
|
||||
$result->closeCursor();
|
||||
|
||||
Reference in new issue
Block a user