Skip to content

Commit

Permalink
Update Mimes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
atishhamte authored Feb 25, 2020
1 parent 614d885 commit aaf2cfd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/Config/Mimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -516,11 +516,7 @@ public static function guessExtensionFromType(string $type, ?string $proposed_ex

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;
}
Expand Down

0 comments on commit aaf2cfd

Please sign in to comment.