[MEDIA][Thumbnail] Fix non-instantiated variable

This commit is contained in:
Diogo Peralta Cordeiro 2021-07-26 21:19:21 +01:00 committed by Hugo Sales
parent dc3801f6ae
commit 80cde06f4b
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

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