From c25964544c30c44913591625a062ccf714185865 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Sat, 19 Sep 2020 21:43:42 -0300 Subject: [PATCH] =?UTF-8?q?D'Oh./bin/gonic=20-music-path=20/media/datos/M?= =?UTF-8?q?=C3=BAsica/=20Fix=20attachments..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Service/NoteService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/NoteService.php b/lib/Service/NoteService.php index 9e0a96c..5978277 100644 --- a/lib/Service/NoteService.php +++ b/lib/Service/NoteService.php @@ -245,7 +245,7 @@ class NoteService { $dbAttachts = $this->attachMapper->findFromNote($userId, $id); foreach ($dbAttachts as $dbAttach) { $delete = true; - foreach ($attachts as $attach) { + foreach ($attachments as $attach) { if ($dbAttach->getFileId() === $attach['file_id']) { $delete = false; break;