Skip to content

Commit

Permalink
Merge pull request #237 from nextcloud/fix/noid/ignore-boolean-mimetype
Browse files Browse the repository at this point in the history
mimetype must be string
  • Loading branch information
ArtificialOwl authored Jul 28, 2023
2 parents b4c7c44 + 5a95968 commit d0917b7
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 d0917b7

Please sign in to comment.