[MEDIA][Thumbnail] Fix non-instantiated variable

This commit is contained in:
2021-07-26 21:19:21 +01:00
committed by Hugo Sales
parent dc3801f6ae
commit 80cde06f4b

View File

@@ -170,6 +170,7 @@ class AttachmentThumbnail extends Entity
}); });
} catch (NotFoundException $e) { } catch (NotFoundException $e) {
$thumbnail = self::create(['attachment_id' => $attachment->getId()]); $thumbnail = self::create(['attachment_id' => $attachment->getId()]);
$event_map = [];
Event::handle('ResizerAvailable', [&$event_map]); Event::handle('ResizerAvailable', [&$event_map]);
$mimetype = $attachment->getMimetype(); $mimetype = $attachment->getMimetype();
$major_mime = GSFile::mimetypeMajor($mimetype); $major_mime = GSFile::mimetypeMajor($mimetype);