mirror of
https://github.com/flextype/flextype.git
synced 2025-08-08 22:26:46 +02:00
fix(media): fix issue with exif_read_data() on files upload.
This commit is contained in:
@@ -164,9 +164,11 @@ class MediaFiles
|
||||
$exif_data = [];
|
||||
|
||||
try {
|
||||
$headers = exif_read_data($filename);
|
||||
foreach ($headers['COMPUTED'] as $header => $value) {
|
||||
$exif_data[$header] = $value;
|
||||
$headers = @exif_read_data($filename);
|
||||
if ($headers != false) {
|
||||
foreach ($headers['COMPUTED'] as $header => $value) {
|
||||
$exif_data[$header] = $value;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException $e) {
|
||||
// catch... @todo
|
||||
|
Reference in New Issue
Block a user