Skip to content

Commit

Permalink
mimetype must be string
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <[email protected]>
  • Loading branch information
ArtificialOwl authored and backportbot-nextcloud[bot] committed Jul 28, 2023
1 parent 4b5d439 commit 8650e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/FilesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ private function generateFilesDocumentFromFile(string $viewerId, Node $file): Fi
throw new FileIsNotIndexableException();
}

if ($file->getMimetype() !== null) {
if (is_string($file->getMimetype())) {
$document->setMimetype($file->getMimetype());
}

Expand Down

0 comments on commit 8650e38

Please sign in to comment.