diff --git a/lib/Service/NoteUtil.php b/lib/Service/NoteUtil.php index 38f066348..dd03aa6d5 100644 --- a/lib/Service/NoteUtil.php +++ b/lib/Service/NoteUtil.php @@ -198,7 +198,7 @@ public function getOrCreateNotesFolder(string $userId, bool $create = true) : Fo $userFolder = $this->getRoot()->getUserFolder($userId); $notesPath = $this->settingsService->get($userId, 'notesPath'); - ['path' => $defaultPath, 'node' => $folder] = $this->settingsService->getDefaultNotesNode($userId); + ['path' => $defaultPath, 'folder' => $folder] = $this->settingsService->getDefaultNotesNode($userId); $allowShared = $notesPath !== $defaultPath; if ($allowShared) {