fix: Compatibility with php 7.4

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2024-03-28 10:14:56 +01:00
parent fd0f37e9d6
commit f3b704b56d

View File

@@ -186,7 +186,7 @@ class FilesAppService implements IAttachmentService, ICustomAttachmentService {
$userFolder = $this->rootFolder->getUserFolder($this->userId); $userFolder = $this->rootFolder->getUserFolder($this->userId);
try { try {
$folder = $userFolder->get($this->configService->getAttachmentFolder()); $folder = $userFolder->get($this->configService->getAttachmentFolder());
} catch (NotFoundException) { } catch (NotFoundException $e) {
$folder = $userFolder->newFolder($this->configService->getAttachmentFolder()); $folder = $userFolder->newFolder($this->configService->getAttachmentFolder());
} }