mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix: Fix mimeType detection/discovery.
This commit is contained in:
parent
994dafa3fc
commit
7422996c00
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user