fix: Fix mimeType detection/discovery.

This commit is contained in:
Pol Dellaiera 2021-08-17 17:14:45 +02:00 committed by Marc Ducobu
parent 994dafa3fc
commit 7422996c00

View File

@ -58,7 +58,7 @@ final class ChillWopi implements WopiInterface
$mimeType = $storedObject->getType();
if (false === reset($this->wopiDiscovery->discoverMimeType($mimeType))) {
if ([] === $this->wopiDiscovery->discoverMimeType($mimeType)) {
throw new Exception(sprintf('Unable to find mime type %s', $mimeType));
}