From 7f84e36fb2f6a380635bc773eae32aa42203422c Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sat, 15 Feb 2020 23:48:26 +0100 Subject: Improve attachments - Allow multiple uploads at once - Make uploads deletable --- src/Models/Attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Models/Attachment.php') 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); } -- cgit v1.2.3-70-g09d2