mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix undefined values and other warnings
This commit is contained in:
parent
702eebaa92
commit
eba7b75c3a
7 changed files with 73 additions and 37 deletions
|
|
@ -15,7 +15,7 @@ class Image
|
|||
*/
|
||||
public static function isImage(string $filename): bool
|
||||
{
|
||||
return array_shift(explode('/', MIME::getContentType($filename))) === 'image';
|
||||
return preg_match('!^image/!', MIME::getContentType($filename));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue