diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-02-15 23:48:26 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-02-15 23:48:26 +0100 |
commit | 7f84e36fb2f6a380635bc773eae32aa42203422c (patch) | |
tree | da87ac3d533d64aa7371b89ff61522c0710a3cc0 /src/Models | |
parent | d24d5f2e21fd4bfb5c369e2932a4c62328ffa758 (diff) | |
download | micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.tar.gz micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.tar.bz2 micropoly-7f84e36fb2f6a380635bc773eae32aa42203422c.zip |
Improve attachments
- Allow multiple uploads at once
- Make uploads deletable
Diffstat (limited to 'src/Models')
-rw-r--r-- | src/Models/Attachment.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Models/Attachment.php b/src/Models/Attachment.php index b627d33..bbd8fc4 100644 --- a/src/Models/Attachment.php +++ b/src/Models/Attachment.php @@ -70,7 +70,7 @@ class Attachment LEFT JOIN note_attachments na ON na.hash = a.hash WHERE na.id IS NULL - "))->fetchRows($db) as $hash) { + "))->fetchValues($db) as $hash) { self::deleteFileByHash($attachmentPath, $hash); } |