Skip to content

Commit

Permalink
Merge pull request #238 from nextcloud/backport/237/stable27
Browse files Browse the repository at this point in the history
[stable27] mimetype must be string
  • Loading branch information
ArtificialOwl authored Jul 28, 2023
2 parents 4aca2d5 + 1db970b commit b906ea9
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 b906ea9

Please sign in to comment.