Update Mimes.php

This commit is contained in:
Atish Amte 2020-02-25 12:23:23 +05:30 committed by GitHub
parent 614d885d4e
commit aaf2cfd4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,11 +516,7 @@ class Mimes
foreach (static::$mimes as $ext => $types)
{
if (is_string($types) && $types === $type)
{
return $ext;
}
else if (is_array($types) && in_array($type, $types))
if ((is_string($types) && $types === $type) || (is_array($types) && in_array($type, $types)))
{
return $ext;
}