smichaelsen / melon-images

Responsive Image Management for TYPO3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing variant leads to a fatal error

smichaelsen opened this issue · comments

If the variant passed to the ResponsivePictureViewHelper is empty, that raises a fatal error.
It should be handled more gracefully. Either make the variant optional (and then just use the first one) or don't render the image, or output a more explicit error message.