mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix: Fix mimeType detection/discovery.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user