mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Update Mimes.php
This commit is contained in:
parent
614d885d4e
commit
aaf2cfd4c7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user