fix(Upload): correct use of explode() function

This commit is contained in:
Alexander Minkin 2024-07-22 00:57:25 +03:00
parent 3f7919116f
commit 2e8718fb3a
Signed by untrusted user: WerySkok
GPG key ID: 88E9A2F3AFE44C30

View file

@ -105,7 +105,7 @@ class Upload
'type' => 'none',
)
);
} else if (explode($type, '/')[0] === 'image') {
} else if (explode('/', $type)[0] === 'image') {
$exif = new EXIF($_FILES['image']['tmp_name']);