aboutsummaryrefslogtreecommitdiff
path: root/src/Models/Attachment.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-02-15 23:48:26 +0100
committerLaria Carolin Chabowski <laria@laria.me>2020-02-15 23:48:26 +0100
commit7f84e36fb2f6a380635bc773eae32aa42203422c (patch)
treeda87ac3d533d64aa7371b89ff61522c0710a3cc0 /src/Models/Attachment.php
parentd24d5f2e21fd4bfb5c369e2932a4c62328ffa758 (diff)
downloadmicropoly-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/Attachment.php')
-rw-r--r--src/Models/Attachment.php2
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);
}