[MEDIA][Thumbnail] Fix non-instantiated variable

This commit is contained in:
Diogo Peralta Cordeiro 2021-07-26 21:19:21 +01:00
parent 8ef6aceb6a
commit 86e92fedc2
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 1 additions and 0 deletions

View File

@ -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);