diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-28 22:24:22 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-28 22:24:22 +0300 |
commit | 252296e15e583d0ec8dca957d5532bbb87d61579 (patch) | |
tree | 9e09763e607b4cf5e4fef44ef6fe690826496f41 /lib | |
parent | 3b74f9a6c7baf076f92ce8915ffd7ff52fda7b18 (diff) | |
parent | a94f438b78ff94613e17ef96f99febc69c3e7a8d (diff) |
Merge pull request #608 from nextcloud/bugfix/ui-var
UI fixes for public share links
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/DocumentService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index 730c064d9..af19f7bc0 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -148,9 +148,9 @@ class DocumentService { } try { - $documentBaseFile = $this->appData->getFolder('documents')->getFile($file->getFileInfo()->getId()); + $documentBaseFile = $this->appData->getFolder('documents')->getFile((string)$file->getFileInfo()->getId()); } catch (NotFoundException $e) { - $documentBaseFile = $this->appData->getFolder('documents')->newFile($file->getFileInfo()->getId()); + $documentBaseFile = $this->appData->getFolder('documents')->newFile((string)$file->getFileInfo()->getId()); } $documentBaseFile->putContent($file->fopen('r')); @@ -302,7 +302,7 @@ class DocumentService { $this->documentMapper->delete($document); try { - $this->appData->getFolder('documents')->getFile($documentId)->delete(); + $this->appData->getFolder('documents')->getFile((string)$documentId)->delete(); } catch (NotFoundException $e) { } catch (NotPermittedException $e) { } |