[MEDIA][Thumbnail] Fix non-instantiated variable
This commit is contained in:
parent
dc3801f6ae
commit
80cde06f4b
|
@ -170,6 +170,7 @@ class AttachmentThumbnail extends Entity
|
|||
});
|
||||
} catch (NotFoundException $e) {
|
||||
$thumbnail = self::create(['attachment_id' => $attachment->getId()]);
|
||||
$event_map = [];
|
||||
Event::handle('ResizerAvailable', [&$event_map]);
|
||||
$mimetype = $attachment->getMimetype();
|
||||
$major_mime = GSFile::mimetypeMajor($mimetype);
|
||||
|
|
Loading…
Reference in New Issue
Block a user