fix: Compatibility with php 7.4
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user