diff options
-rw-r--r-- | lib/Service/DocumentService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index 6dc254355..ed6dc75a3 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -172,7 +172,7 @@ class DocumentService { * @throws NotFoundException */ public function getBaseFile($document): ISimpleFile { - return $this->appData->getFolder('documents')->getFile($document); + return $this->appData->getFolder('documents')->getFile((string) $document); } public function get($documentId) { |