fix: Fix mimeType detection/discovery.

This commit is contained in:
Pol Dellaiera 2021-08-17 17:12:38 +02:00 committed by Marc Ducobu
parent 15e42d066b
commit 994dafa3fc

View File

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